MCPcopy Create free account
hub / github.com/GoEdgeLab/EdgeNode / VerDict

Method VerDict

internal/firewalls/nftables/rule.go:35–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33}
34
35func (this *Rule) VerDict() expr.VerdictKind {
36 for _, e := range this.rawRule.Exprs {
37 exp, ok := e.(*expr.Verdict)
38 if ok {
39 return exp.Kind
40 }
41 }
42
43 return -100
44}
45
46func (this *Rule) Handle() uint64 {
47 return this.rawRule.Handle

Callers 2

initMethod · 0.80
TestChain_GetRulesFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestChain_GetRulesFunction · 0.64