functions

package
v0.15.4-rc.2 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Function

type Function struct {
	// contains filtered or unexported fields
}

func (Function) Invoke

func (f Function) Invoke(args ...types.TypedValue) (types.TypedValue, error)

func (Function) NumRequiredParams added in v0.14.6

func (f Function) NumRequiredParams() int

func (Function) Validate added in v0.14.6

func (f Function) Validate() error

type Invoker

type Invoker func(args ...types.TypedValue) string

type Parameter added in v0.14.6

type Parameter struct {
	// contains filtered or unexported fields
}

func OptionalParam added in v0.14.6

func OptionalParam(pType types.Type) Parameter

func Param added in v0.14.6

func Param(pType types.Type) Parameter

type Registry

type Registry interface {
	Add(string, Invoker, ...Parameter)
	Get(string) (Function, error)
}

func DefaultRegistry

func DefaultRegistry() Registry

Jump to

Keyboard shortcuts

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