Documentation
¶
Overview ¶
Package litefunc implements config-defined expr functions that are inlined at compile time via AST patching.
Index ¶
- func WrapCompileError(p *Patcher, err error) error
- type Environment
- type Patcher
- type Registry
- func (r *Registry) CompileOpts(env Environment) ([]expr.Option, *Patcher)
- func (r *Registry) Get(name string) *funcDef
- func (r *Registry) Names() []string
- func (r *Registry) NewPatcher(env Environment) *Patcher
- func (r *Registry) Summary() []string
- func (r *Registry) ValidateConflicts(registeredSymbols []string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WrapCompileError ¶
Types ¶
type Environment ¶
type Environment string
const ( EnvMatch Environment = "match" EnvExtendedMatch Environment = "extended_match" EnvAggregation Environment = "aggregation" EnvProjections Environment = "projections" EnvGroupBy Environment = "group_by_expr" EnvNormalize Environment = "normalize" )
type Patcher ¶
type Patcher struct {
// contains filtered or unexported fields
}
Patcher inlines lite function calls at the AST level during expr compilation.
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
func (*Registry) CompileOpts ¶
func (r *Registry) CompileOpts(env Environment) ([]expr.Option, *Patcher)
func (*Registry) NewPatcher ¶
func (r *Registry) NewPatcher(env Environment) *Patcher
func (*Registry) ValidateConflicts ¶
Click to show internal directories.
Click to hide internal directories.