Documentation
¶
Overview ¶
alive helps servers to coordinate graceful or fast stopping
Index ¶
- type Alive
- func (self *Alive) Add(delta int)
- func (self *Alive) Done()
- func (self *Alive) IsFinished() bool
- func (self *Alive) IsRunning() bool
- func (self *Alive) IsStopping() bool
- func (self *Alive) Stop()
- func (self *Alive) StopChan() <-chan struct{}
- func (self *Alive) String() string
- func (self *Alive) Wait()
- func (self *Alive) WaitChan() <-chan struct{}
- func (self *Alive) WaitTasks()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Alive ¶
type Alive struct {
// contains filtered or unexported fields
}
func (*Alive) IsFinished ¶
func (*Alive) IsStopping ¶
Click to show internal directories.
Click to hide internal directories.