Documentation ¶
Index ¶
- Variables
- type Compiler
- type NamespaceContainer
- func (nc *NamespaceContainer) MustRegisterFunction(name string, fun core.Function)
- func (nc *NamespaceContainer) MustRegisterFunctions(funcs *core.Functions)
- func (nc *NamespaceContainer) Namespace(name string) core.Namespace
- func (nc *NamespaceContainer) RegisterFunction(name string, fun core.Function) error
- func (nc *NamespaceContainer) RegisterFunctions(funcs *core.Functions) error
- func (nc *NamespaceContainer) RegisteredFunctions() []string
- func (nc *NamespaceContainer) RemoveFunction(name string)
- type Option
- type Options
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrEmptyQuery = errors.New("empty query") ErrNotImplemented = errors.New("not implemented") ErrVariableNotFound = errors.New("variable not found") ErrVariableNotUnique = errors.New("variable is already defined") ErrInvalidToken = errors.New("invalid token") ErrInvalidDataSource = errors.New("invalid data source") )
Functions ¶
This section is empty.
Types ¶
type Compiler ¶ added in v0.9.0
type Compiler struct {
*NamespaceContainer
}
type NamespaceContainer ¶ added in v0.8.0
type NamespaceContainer struct {
// contains filtered or unexported fields
}
func (*NamespaceContainer) MustRegisterFunction ¶ added in v0.13.0
func (nc *NamespaceContainer) MustRegisterFunction(name string, fun core.Function)
func (*NamespaceContainer) MustRegisterFunctions ¶ added in v0.13.0
func (nc *NamespaceContainer) MustRegisterFunctions(funcs *core.Functions)
func (*NamespaceContainer) Namespace ¶ added in v0.8.0
func (nc *NamespaceContainer) Namespace(name string) core.Namespace
func (*NamespaceContainer) RegisterFunction ¶ added in v0.8.0
func (nc *NamespaceContainer) RegisterFunction(name string, fun core.Function) error
func (*NamespaceContainer) RegisterFunctions ¶ added in v0.8.0
func (nc *NamespaceContainer) RegisterFunctions(funcs *core.Functions) error
func (*NamespaceContainer) RegisteredFunctions ¶ added in v0.8.0
func (nc *NamespaceContainer) RegisteredFunctions() []string
func (*NamespaceContainer) RemoveFunction ¶ added in v0.8.0
func (nc *NamespaceContainer) RemoveFunction(name string)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.