vendor_proxy

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 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")
	ErrFunctionExists        = ErrVendorProxy.WithMessage("such a function already exists")
	ErrFunctionNotExists     = ErrVendorProxy.WithMessage("function does not exist")
	ErrInvalidArgument       = ErrVendorProxy.WithMessage("function argument is invalid")
	ErrArgumentsNotValidated = ErrVendorProxy.WithMessage("arguments are not validated")
	ErrWrongCountArguments   = ErrVendorProxy.WithMessage("wrong count of arguments")
)

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