Versions in this module Expand all Collapse all v0 v0.33.0 Nov 19, 2024 Changes in this version + type ActionError struct + Err error + Index int + func (a *ActionError) Error() string + type CompiledAction struct + Params map[string]*vm.Program + func NewCompiledAction(a gadb.UIKActionV1) (*CompiledAction, error) + func (a *CompiledAction) Run(vm *vm.VM, env any) (result gadb.UIKActionV1, err error) + type CompiledConfig struct + CompiledRules []CompiledRule + DefaultActions []CompiledAction + func NewCompiledConfig(cfg gadb.UIKConfigV1) (*CompiledConfig, error) + func (c *CompiledConfig) Run(vm *vm.VM, env any) (actions []gadb.UIKActionV1, err error) + type CompiledRule struct + Actions []CompiledAction + Condition *vm.Program + func NewCompiledRule(r gadb.UIKRuleV1) (*CompiledRule, error) + func (r *CompiledRule) Run(vm *vm.VM, env any) (actions []gadb.UIKActionV1, matched bool, err error) + type ConditionError struct + Err error + func (c *ConditionError) Error() string + type Handler struct + func NewHandler(db TxAble, intStore *integrationkey.Store, aStore *alert.Store, ...) *Handler + func (h *Handler) ServeHTTP(w http.ResponseWriter, req *http.Request) + type ParamError struct + Err error + ParamID string + func (p *ParamError) Error() string + type RuleError struct + Err error + Index int + Name string + func (r *RuleError) Error() string + type TxAble interface + BeginTx func(ctx context.Context, opts *sql.TxOptions) (*sql.Tx, error) v0.33.0-rc.0 Nov 19, 2024