closer

package
v0.0.0-...-1c20ad9 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2024 License: Apache-2.0 Imports: 5 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Closer

type Closer struct {
	// contains filtered or unexported fields
}

func NewCloser

func NewCloser(logger *zap.Logger, gracefulCloseTimeout, forceCloseTimeout time.Duration, signals ...os.Signal) *Closer

func (*Closer) Add

func (c *Closer) Add(f ...func() error)

func (*Closer) AddForce

func (c *Closer) AddForce(f ...func() error)

func (*Closer) CloseEverything

func (c *Closer) CloseEverything()

func (*Closer) Run

func (c *Closer) Run(functions ...func() error)

func (*Closer) Wait

func (c *Closer) Wait()

Jump to

Keyboard shortcuts

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