Documentation ¶
Index ¶
- type Pool
- type ZQuit
- func (q *ZQuit) Done()
- func (q *ZQuit) GetStat() string
- func (q *ZQuit) Inc()
- func (q *ZQuit) IncDefer() func()
- func (q *ZQuit) IsQuit() bool
- func (q *ZQuit) Middleware(c *gin.Context)
- func (q *ZQuit) PrintStat(sec int)
- func (q *ZQuit) Shutdown()
- func (q *ZQuit) Val() int
- func (q *ZQuit) Wait()
- func (q *ZQuit) WaitInterrupt()
- func (q *ZQuit) WaitInterruptPrePost(pre func(), post func())
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pool ¶ added in v1.0.4
func DefaultPool ¶ added in v1.0.4
func DefaultPool() *Pool
func (*Pool) WaitInterrupt ¶ added in v1.0.4
func (p *Pool) WaitInterrupt()
func (*Pool) WaitInterruptPrePost ¶ added in v1.0.4
func (p *Pool) WaitInterruptPrePost(pre func(), post func())
type ZQuit ¶
type ZQuit struct { Name string PostWaitDur time.Duration // contains filtered or unexported fields }
func (*ZQuit) Middleware ¶
func (*ZQuit) WaitInterrupt ¶
func (q *ZQuit) WaitInterrupt()
func (*ZQuit) WaitInterruptPrePost ¶
func (q *ZQuit) WaitInterruptPrePost(pre func(), post func())
Click to show internal directories.
Click to hide internal directories.