Documentation ¶
Index ¶
- Variables
- type ShutdownCallback
- type Stoppable
- func (instance *Stoppable) AddStopOperation(name string, callback ShutdownCallback) *Stoppable
- func (instance *Stoppable) GetName() string
- func (instance *Stoppable) GetSleep() time.Duration
- func (instance *Stoppable) GetTimeout() time.Duration
- 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 func() gg_.ILogger) *Stoppable
- func (instance *Stoppable) SetName(name string) *Stoppable
- func (instance *Stoppable) SetSleep(value time.Duration) *Stoppable
- func (instance *Stoppable) SetTimeout(value time.Duration) *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) GetTimeout ¶ added in v0.2.40
func (*Stoppable) JoinTimeout ¶
func (*Stoppable) OperationsName ¶
func (*Stoppable) SetTimeout ¶ added in v0.2.40
Click to show internal directories.
Click to hide internal directories.