Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewInvalidInputError ¶
func NewInvalidInputError(v interface{}) error
func NewInvalidOutputError ¶
func NewInvalidOutputError(v interface{}) error
func NewMethodNotFoundError ¶
Types ¶
type Executable ¶
Executable represents a callable method accepting an input value and writing into the provided output. Implementations should return an error on failure.
type HasToolTimeout ¶ added in v0.2.10
HasToolTimeout can be implemented by services to suggest a per-tool execution timeout. Registries may honor this when executing the service. Returned duration should be >0 to take effect.
type Service ¶
type Service interface {
Name() string
Methods() Signatures
Method(name string) (Executable, error)
}
Service is a minimal abstraction grouping a set of executable methods.
type Signature ¶
type Signature struct {
Name string
Description string
Internal bool
Input reflect.Type
Output reflect.Type
}
Signature describes a single method exposed by a Service.
type Signatures ¶
type Signatures []Signature
Signatures is an ordered collection of method signatures.
Click to show internal directories.
Click to hide internal directories.