Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CanEndpoint ¶
func CanEndpoint(fn interface{}) bool
CanEndpoint test if a function can be cast as Endpoint
func Compose ¶
Compose takes multiple functions and compose them into a single endpoint. The functions will be called in the order of input. The rule to valid compose:
- The output variables of any functions should match the types and position of arguments of the next function.
- The first function should take a context.Context and 1 other argument.
3. The last function should output 1 variable with 1 error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.