Documentation ¶
Index ¶
Constants ¶
View Source
const CRIME_PAYLOAD_DATE_KEY = "DATE_KEY"
View Source
const CRIME_PAYLOAD_MSG_KEY = "MSG_KEY"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HeadQuarter ¶
type Hood ¶
type Hood struct { Name string `yaml:"name"` IsEnabled bool `yaml:"enabled"` Path string `yaml:"path"` Interval int `yaml:"interval"` Reporting bool `yaml:"reporting"` Rules []*HoodRule `yaml:"rules"` Hq HeadQuarter `yaml:"-"` Inspector Inspector `yaml:"-"` // contains filtered or unexported fields }
func (*Hood) HoodInit ¶
func (h *Hood) HoodInit(hq HeadQuarter, l hclog.Logger) error
type Hq ¶
type Hq struct {
// contains filtered or unexported fields
}
func (*Hq) ReportCrime ¶
func (*Hq) ReportError ¶
type Investigator ¶
type Investigator struct {
// contains filtered or unexported fields
}
func NewInvestigator ¶
func (*Investigator) Investigate ¶
func (i *Investigator) Investigate()
func (*Investigator) OnError ¶
func (i *Investigator) OnError(e error)
func (*Investigator) ReportCrime ¶
func (i *Investigator) ReportCrime(c *Crime)
Click to show internal directories.
Click to hide internal directories.