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

Function WithMonitorEventBuffer

monitor.go:154–158  ·  view source on GitHub ↗
(size int)

Source from the content-addressed store, hash-verified

152type MonitorOption func(*Monitor)
153
154func WithMonitorEventBuffer(size int) MonitorOption {
155 return func(monitor *Monitor) {
156 monitor.eventCh = make(chan *MonitorEvents, size)
157 }
158}
159
160// WithMonitorAction to set monitor actions like new, del or any.
161func WithMonitorAction(action MonitorAction) 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…