Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrDifferentRuleGroup = errors.New("different rule group")
View Source
var ErrNoRuleMatched = errors.New("no rule matched")
Functions ¶
This section is empty.
Types ¶
type Page ¶
type Page struct { Url string // 在该规则分组下匹配规则 Group string Rule *Rule // contains filtered or unexported fields }
func (*Page) OnCdpEvent ¶
type Rule ¶
type Rule struct { Id string `yaml:"id"` Version int `yaml:"version"` Name string `yaml:"name"` Alias string `yaml:"alias"` Group string `yaml:"group"` Priority int `yaml:"priority"` Patterns []string `yaml:"patterns"` Prepare *Prepare `yaml:"prepare"` Timeout string `yaml:"timeout"` Fields []*Field `yaml:"fields"` Loop *Loop `yaml:"loop"` // contains filtered or unexported fields }
type RuleGroup ¶
type RuleGroup struct {
// contains filtered or unexported fields
}
func NewRuleGroup ¶
func (*RuleGroup) AppendBytes ¶
func (*RuleGroup) AppendFile ¶
Click to show internal directories.
Click to hide internal directories.