Documentation ¶
Index ¶
Constants ¶
View Source
const (
InputTypeRequest = "request"
)
InputTypeRequest and others represent consts for Directives
View Source
const (
NamespaceDefault = "default"
)
NamespaceDefault and others represent conts for namespaces
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Directive ¶
type Directive struct { Identifier string `yaml:"identifier"` Version string `yaml:"version"` Functions []Function `yaml:"functions"` Handlers []Handler `yaml:"handlers,omitempty"` // contains filtered or unexported fields }
Directive describes a set of functions and a set of handlers that take an input, and compose a set of functions to handle it
func (*Directive) FQFN ¶ added in v0.1.2
FQFN returns the FQFN for a given function in the directive
type Executable ¶
Executable represents an executable step in a handler
func (*Executable) IsFn ¶ added in v0.1.2
func (e *Executable) IsFn() bool
IsFn returns true if the executable is a group
func (*Executable) IsGroup ¶ added in v0.1.2
func (e *Executable) IsGroup() bool
IsGroup returns true if the executable is a group
type Handler ¶
type Handler struct { Input Input `yaml:"input,inline"` Steps []Executable Response string `yaml:"response,omitempty"` }
Handler represents the mapping between an input and a composition of functions
Click to show internal directories.
Click to hide internal directories.