WithSessionCatalog injects the daemon-owned session catalog.
(catalog core.SessionCatalog)
| 172 | |
| 173 | // WithSessionCatalog injects the daemon-owned session catalog. |
| 174 | func WithSessionCatalog(catalog core.SessionCatalog) Option { |
| 175 | return func(server *Server) { |
| 176 | server.sessionCatalog = catalog |
| 177 | } |
| 178 | } |
| 179 | |
| 180 | // WithTaskService injects the daemon-owned task service. |
| 181 | func WithTaskService(service core.TaskService) Option { |
no outgoing calls