Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Antispammer ¶
type Antispammer struct {
// contains filtered or unexported fields
}
Antispammer makes a decision on the need to parse the input log. It can be useful when any application writes logs at speed faster than File.d can read it.
Anti-spammer supports exceptions for cases where you need to guarantee delivery of an important events.
func NewAntispammer ¶
func NewAntispammer(o Options) *Antispammer
func (*Antispammer) Dump ¶
func (a *Antispammer) Dump() string
func (*Antispammer) Maintenance ¶
func (a *Antispammer) Maintenance()
type Exception ¶
type Rule ¶
type Rule struct {
// Values to match at least one value.
Values []string `json:"values"`
Mode Mode `json:"mode"`
// CaseInsensitive is the truth then Match results in a lowercase search value.
// Not available fo the ModeContains because performance issues may arise.
CaseInsensitive bool `json:"case_insensitive"`
Invert bool `json:"invert"`
}
Click to show internal directories.
Click to hide internal directories.