Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Checker ¶
type Checker interface {
// Check should block until all underlying services reported their status
Check(ctx context.Context) error
}
Checker interface is used for live-checks in background processed
type Operator ¶
type Operator struct {
// contains filtered or unexported fields
}
func (*Operator) AddService ¶
AddService starts the service and puts it under operator's control. returns service's start error
func (*Operator) Check ¶
Check does a live-check on all services. Returns map with
key = service reference value = service stop errors
func (*Operator) RemoveService ¶
RemoveService stops service and removes it service from operator's control. returns service's stop error
Click to show internal directories.
Click to hide internal directories.