Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotStarted = orberrors.NewTransient(errors.New("service has not started"))
ErrNotStarted indicates that an attempt was made to invoke a service that has not been started or is still in the process of starting.
Functions ¶
This section is empty.
Types ¶
type Lifecycle ¶
type Lifecycle struct {
// contains filtered or unexported fields
}
Lifecycle implements the lifecycle of a service, i.e. Start and Stop.
type Opt ¶
type Opt func(opts *options)
Opt sets a Lifecycle option.
type State ¶
type State = uint32
State is the state of the service.
const ( // StateNotStarted indicates that the service has not been started. StateNotStarted State = 0 // StateStarting indicates that the service is in the process of starting. StateStarting State = 1 // StateStarted indicates that the service has been started. StateStarted State = 2 // StateStopped indicates that the service has been stopped. StateStopped State = 3 )
Click to show internal directories.
Click to hide internal directories.