MCPcopy
hub / github.com/evilsocket/opensnitch / NumRules

Method NumRules

daemon/rule/loader.go:56–60  ·  view source on GitHub ↗

NumRules returns he number of loaded rules.

()

Source from the content-addressed store, hash-verified

54
55// NumRules returns he number of loaded rules.
56func (l *Loader) NumRules() int {
57 l.RLock()
58 defer l.RUnlock()
59 return len(l.rules)
60}
61
62// GetAll returns the loaded rules.
63func (l *Loader) GetAll() map[string]*Rule {

Callers 2

SerializeMethod · 0.80
testNumRulesFunction · 0.80

Calls 2

RLockMethod · 0.80
RUnlockMethod · 0.80

Tested by 1

testNumRulesFunction · 0.64