Documentation ¶
Index ¶
- Variables
- type ShutdownCallback
- type Stoppable
- func (instance *Stoppable) AddStopOperation(name string, callback ShutdownCallback) *Stoppable
- func (instance *Stoppable) GetName() string
- func (instance *Stoppable) IsJoined() bool
- func (instance *Stoppable) IsStopped() bool
- func (instance *Stoppable) ItemId() string
- func (instance *Stoppable) Join()
- func (instance *Stoppable) JoinTimeout(d time.Duration)
- func (instance *Stoppable) OnStart(f func())
- func (instance *Stoppable) OnStop(f func())
- func (instance *Stoppable) OperationsName() []string
- func (instance *Stoppable) SetLogger(logger gg_.ILogger) *Stoppable
- func (instance *Stoppable) SetName(name string) *Stoppable
- func (instance *Stoppable) Start() bool
- func (instance *Stoppable) Stop() bool
- func (instance *Stoppable) String() string
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type ShutdownCallback ¶
type ShutdownCallback func() error
type Stoppable ¶
type Stoppable struct {
// contains filtered or unexported fields
}
Stoppable object
func NewStoppable ¶
func NewStoppable() *Stoppable
func (*Stoppable) AddStopOperation ¶
func (instance *Stoppable) AddStopOperation(name string, callback ShutdownCallback) *Stoppable
func (*Stoppable) JoinTimeout ¶
func (*Stoppable) OperationsName ¶
Click to show internal directories.
Click to hide internal directories.