Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Statistics ¶
type Statistics struct { sync.RWMutex Started time.Time DNSResponses int Connections int Ignored int Accepted int Dropped int RuleHits int RuleMisses int Events []*Event ByProto map[string]uint64 ByAddress map[string]uint64 ByHost map[string]uint64 ByPort map[string]uint64 ByUID map[string]uint64 ByExecutable map[string]uint64 // contains filtered or unexported fields }
func New ¶
func New(rules *rule.Loader) (stats *Statistics)
func (*Statistics) OnConnectionEvent ¶
func (s *Statistics) OnConnectionEvent(con *conman.Connection, match *rule.Rule, wasMissed bool)
func (*Statistics) OnDNSResponse ¶
func (s *Statistics) OnDNSResponse()
func (*Statistics) OnIgnored ¶
func (s *Statistics) OnIgnored()
func (*Statistics) Serialize ¶
func (s *Statistics) Serialize() *protocol.Statistics
Click to show internal directories.
Click to hide internal directories.