Versions in this module Expand all Collapse all v0 v0.1.72 Sep 3, 2019 v0.1.9 Nov 25, 2019 Changes in this version type Rule + Description string type RuleOperator + const RuleOperatorEqIP + const RuleOperatorGtIP + const RuleOperatorGteIP + const RuleOperatorIPMod + const RuleOperatorIPMod10 + const RuleOperatorIPMod100 + const RuleOperatorIPRange + const RuleOperatorLtIP + const RuleOperatorLteIP + const RuleOperatorNotIPRange + const RuleOperatorVersionRange type RuleSet + Description string v0.1.8 Sep 30, 2019 v0.1.7 Sep 1, 2019 v0.1.6 Jul 21, 2019 v0.1.5 Jun 9, 2019 v0.1.4 May 19, 2019 v0.1.3 May 4, 2019 Changes in this version + const RuleCaseInsensitiveNo + const RuleCaseInsensitiveNone + const RuleCaseInsensitiveYes + const RuleConnectorAnd + const RuleConnectorOr + const RuleOperatorContains + const RuleOperatorEq + const RuleOperatorEqString + const RuleOperatorGt + const RuleOperatorGte + const RuleOperatorHasKey + const RuleOperatorLt + const RuleOperatorLte + const RuleOperatorMatch + const RuleOperatorNeq + const RuleOperatorNeqString + const RuleOperatorNotContains + const RuleOperatorNotMatch + const RuleOperatorPrefix + const RuleOperatorSuffix + const RuleOperatorVersionGt + const RuleOperatorVersionLt + var AllRuleOperators = []*RuleOperatorDefinition + type Rule struct + CheckpointOptions map[string]string + IsCaseInsensitive bool + Operator RuleOperator + Param string + Value string + func NewRule() *Rule + func (this *Rule) Init() error + func (this *Rule) IsSingleCheckpoint() bool + func (this *Rule) MatchRequest(req *requests.Request) (b bool, err error) + func (this *Rule) MatchResponse(req *requests.Request, resp *requests.Response) (b bool, err error) + func (this *Rule) SetCheckpointFinder(finder func(prefix string) checkpoints.CheckpointInterface) + func (this *Rule) Test(value interface{}) bool + type RuleCaseInsensitive = string + type RuleConnector = string + type RuleGroup struct + Code string + Description string + Id string + IsInbound bool + Name string + On bool + RuleSets []*RuleSet + func NewRuleGroup() *RuleGroup + func (this *RuleGroup) AddRuleSet(ruleSet *RuleSet) + func (this *RuleGroup) FindRuleSet(id string) *RuleSet + func (this *RuleGroup) FindRuleSetWithCode(code string) *RuleSet + func (this *RuleGroup) Init() error + func (this *RuleGroup) MatchRequest(req *requests.Request) (b bool, set *RuleSet, err error) + func (this *RuleGroup) MatchResponse(req *requests.Request, resp *requests.Response) (b bool, set *RuleSet, err error) + func (this *RuleGroup) MoveRuleSet(fromIndex int, toIndex int) + func (this *RuleGroup) RemoveRuleSet(id string) + type RuleOperator = string + type RuleOperatorDefinition struct + CaseInsensitive RuleCaseInsensitive + Code string + Description string + Name string + type RuleSet struct + Action actions.ActionString + ActionOptions maps.Map + Code string + Connector RuleConnector + Id string + Name string + On bool + Rules []*Rule + func NewRuleSet() *RuleSet + func (this *RuleSet) AddRule(rule ...*Rule) + func (this *RuleSet) Init() error + func (this *RuleSet) MatchRequest(req *requests.Request) (b bool, err error) + func (this *RuleSet) MatchResponse(req *requests.Request, resp *requests.Response) (b bool, err error)