types

package
v0.3.12 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ExecutionContextKey = executionContextKey("execution-context")

ExecutionContextKey execution context

Functions

func EnsureExecutionContext added in v0.1.22

func EnsureExecutionContext(ctx context.Context, pairs ...string) context.Context

EnsureExecutionContext ensure

func EnsureExecutionContextValue added in v0.1.24

func EnsureExecutionContextValue(ctx context.Context, key string, value any) context.Context

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

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
	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

Jump to

Keyboard shortcuts

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