types

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2025 License: Apache-2.0 Imports: 3 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewInvalidInputError

func NewInvalidInputError(in interface{}) error

func NewInvalidOutputError

func NewInvalidOutputError(in interface{}) error

func NewMethodNotFoundError

func NewMethodNotFoundError(name string) error

Types

type Executable

type Executable func(context context.Context, input, output interface{}) error

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
	Input       reflect.Type
	Output      reflect.Type
}

Signature method signature

type Signatures

type Signatures []Signature

func (Signatures) Lookup

func (s Signatures) Lookup(name string) *Signature

Jump to

Keyboard shortcuts

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