zquit

package
v1.4.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pool added in v1.0.4

type Pool struct {
	PostWaitDur time.Duration
	// contains filtered or unexported fields
}

func DefaultPool added in v1.0.4

func DefaultPool() *Pool

func NewPool added in v1.0.4

func NewPool(postWaitDur time.Duration) *Pool

func (*Pool) Add added in v1.0.4

func (p *Pool) Add(z *ZQuit)

func (*Pool) PrintStat added in v1.0.4

func (p *Pool) PrintStat(sec int)

func (*Pool) Wait added in v1.0.4

func (p *Pool) Wait()

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 Default added in v1.0.4

func Default(name ...string) *ZQuit

func New

func New(name string, postWaitDur time.Duration) *ZQuit

func (*ZQuit) Done

func (q *ZQuit) Done()

func (*ZQuit) GetStat added in v1.0.4

func (q *ZQuit) GetStat() string

func (*ZQuit) Inc

func (q *ZQuit) Inc()

func (*ZQuit) IncDefer

func (q *ZQuit) IncDefer() func()

func (*ZQuit) IsQuit

func (q *ZQuit) IsQuit() bool

func (*ZQuit) Middleware

func (q *ZQuit) Middleware(c *gin.Context)

func (*ZQuit) PrintStat added in v1.0.4

func (q *ZQuit) PrintStat(sec int)

func (*ZQuit) Shutdown

func (q *ZQuit) Shutdown()

func (*ZQuit) Val

func (q *ZQuit) Val() int

func (*ZQuit) Wait

func (q *ZQuit) Wait()

func (*ZQuit) WaitInterrupt

func (q *ZQuit) WaitInterrupt()

func (*ZQuit) WaitInterruptPrePost

func (q *ZQuit) WaitInterruptPrePost(pre func(), post func())

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL