vendor_proxy

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrVendorProxy           = xerrors.New("vendor proxy error", "E0810")
	ErrFunctionExists        = ErrVendorProxy.WithMessage("such a function already exists", "E0811")
	ErrFunctionNotExists     = ErrVendorProxy.WithMessage("function does not exist", "E0812")
	ErrInvalidArgument       = ErrVendorProxy.WithMessage("function argument is invalid", "E0813")
	ErrArgumentsNotValidated = ErrVendorProxy.WithMessage("arguments are not validated", "E0814")
	ErrWrongCountArguments   = ErrVendorProxy.WithMessage("wrong count of arguments", "E0815")
)

Functions

func Has

func Has(name string) bool

Types

type Context

type Context interface {
	Validated()
	ValidationFailed(message string)
}

type Proxy

type Proxy interface {
	AddFunction(name string, function any) error
	CallFunction(name string, args ...any) (any, error)
}

func Get

func Get(name string) Proxy

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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