WithMonitorAction to set monitor actions like new, del or any.
(action MonitorAction)
| 159 | |
| 160 | // WithMonitorAction to set monitor actions like new, del or any. |
| 161 | func WithMonitorAction(action MonitorAction) MonitorOption { |
| 162 | return func(monitor *Monitor) { |
| 163 | monitor.action = action |
| 164 | } |
| 165 | } |
| 166 | |
| 167 | // WithMonitorObject to set monitor objects. |
| 168 | func WithMonitorObject(object MonitorObject) MonitorOption { |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…