(size int)
| 152 | type MonitorOption func(*Monitor) |
| 153 | |
| 154 | func 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. |
| 161 | func WithMonitorAction(action MonitorAction) MonitorOption { |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…