Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Evaluate ¶
func Evaluate(rules *[]*Rule, ctx *fasthttp.RequestCtx) types.ResponseState
func RulesLength ¶
Types ¶
type Aggregation ¶
func (*Aggregation) Get ¶
func (a *Aggregation) Get(ctx *fasthttp.RequestCtx) uint64
type Rule ¶
type Rule struct { Interval uint64 `json:"interval"` Limit uint64 `json:"limit"` Name string `json:"name"` MatchCount uint64 `json:"match_count"` Filters []*selector.Selector `json:"-"` RawFilters []string `json:"filters"` Aggregations []*Aggregation `json:"-"` RawAggregations []string `json:"aggregations"` Actions []action.Action `json:"-"` RawActions []action.ActionJSON `json:"actions"` SubRules []*Rule `json:"subrules"` Disabled bool `json:"disabled"` Stop bool `json:"stop"` // contains filtered or unexported fields }
func ParseJSONFile ¶
func (*Rule) ParseAggregations ¶
func (*Rule) ParseFilters ¶
func (*Rule) Validate ¶
func (r *Rule) Validate(ctx *fasthttp.RequestCtx, rs types.ResponseState) types.ResponseState
Click to show internal directories.
Click to hide internal directories.