Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServiceManager ¶
type ServiceManager struct {
// contains filtered or unexported fields
}
func NewServiceManager ¶
func NewServiceManager() *ServiceManager
func (*ServiceManager) AddService ¶
func (sm *ServiceManager) AddService(name string, service Service)
func (*ServiceManager) StartAllAndWait ¶
func (sm *ServiceManager) StartAllAndWait(ctx context.Context) error
StartAllAndWait starts all services and waits for them to complete or error. If any service errors, all other services are stopped gracefully and the error is returned.
Click to show internal directories.
Click to hide internal directories.