MCPcopy Create free account
hub / github.com/google/nftables / WithMonitorAction

Function WithMonitorAction

monitor.go:161–165  ·  view source on GitHub ↗

WithMonitorAction to set monitor actions like new, del or any.

(action MonitorAction)

Source from the content-addressed store, hash-verified

159
160// WithMonitorAction to set monitor actions like new, del or any.
161func WithMonitorAction(action MonitorAction) MonitorOption {
162 return func(monitor *Monitor) {
163 monitor.action = action
164 }
165}
166
167// WithMonitorObject to set monitor objects.
168func WithMonitorObject(object MonitorObject) MonitorOption {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…