WithObserver injects the runtime observer.
(observer core.Observer)
| 200 | |
| 201 | // WithObserver injects the runtime observer. |
| 202 | func WithObserver(observer core.Observer) Option { |
| 203 | return func(server *Server) { |
| 204 | server.observer = observer |
| 205 | } |
| 206 | } |
| 207 | |
| 208 | // WithAutomation injects the daemon-owned automation manager. |
| 209 | func WithAutomation(manager core.AutomationManager) Option { |
no outgoing calls