api

package
v0.0.0-...-288f078 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2024 License: AGPL-3.0, Apache-2.0, CC-BY-SA-3.0 Imports: 1 Imported by: 0

Documentation

Overview

Package api provides types used by controller/server-component packages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RoutableFunc

type RoutableFunc func(ctx context.Context, opts interface{}) (interface{}, error)

A RoutableFunc calls an API method (sometimes via a wrapped RoutableFunc) that has real argument types.

(It is used by ctrlctx to manage database transactions, so moving it to the router package would cause a circular dependency router->arvadostest->ctrlctx->router.)

type RoutableFuncWrapper

type RoutableFuncWrapper func(RoutableFunc) RoutableFunc

func ComposeWrappers

func ComposeWrappers(wraps ...RoutableFuncWrapper) RoutableFuncWrapper

ComposeWrappers (w1, w2, w3, ...) returns a RoutableFuncWrapper that composes w1, w2, w3, ... such that w1 is the outermost wrapper.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL