CanBeDisabled allows the services to decide if it should be started or not by itself. This is useful for services that might not always be started, ex alerting. This will be called after `Init()`.
| 16 | // that might not always be started, ex alerting. |
| 17 | // This will be called after `Init()`. |
| 18 | type CanBeDisabled interface { |
| 19 | // IsDisabled should return a bool saying if it can be started or not. |
| 20 | IsDisabled() bool |
| 21 | } |
| 22 | |
| 23 | // BackgroundService should be implemented for services that have |
| 24 | // long running tasks in the background. |
no outgoing calls
no test coverage detected