Documentation
¶
Index ¶
- Variables
- func EnsureExecutionContext(ctx context.Context, pairs ...string) context.Context
- func EnsureExecutionContextValue(ctx context.Context, key string, value any) context.Context
- func NewInvalidInputError(in interface{}) error
- func NewInvalidOutputError(in interface{}) error
- func NewMethodNotFoundError(name string) error
- type Executable
- type Service
- type Signature
- type Signatures
Constants ¶
This section is empty.
Variables ¶
View Source
var ExecutionContextKey = executionContextKey("execution-context")
ExecutionContextKey execution context
Functions ¶
func EnsureExecutionContext ¶ added in v0.1.22
EnsureExecutionContext ensure
func EnsureExecutionContextValue ¶ added in v0.1.24
EnsureExecutionContextValue ensures the execution-context map exists in ctx and stores a single key/value pair. The key must be a string; the value can be of any type.
func NewInvalidInputError ¶
func NewInvalidInputError(in interface{}) error
func NewInvalidOutputError ¶
func NewInvalidOutputError(in interface{}) error
func NewMethodNotFoundError ¶
Types ¶
type Executable ¶
Executable is a function that can be executed
type Service ¶
type Service interface {
Name() string
Methods() Signatures
Method(name string) (Executable, error)
}
Service is a service interface
type Signature ¶
type Signature struct {
Name string
Description string
Internal bool
Input reflect.Type
Output reflect.Type
}
Signature method signature
type Signatures ¶
type Signatures []Signature
func (Signatures) Lookup ¶
func (s Signatures) Lookup(name string) *Signature
Click to show internal directories.
Click to hide internal directories.