graceful

package
v0.3.8 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Graceful

type Graceful struct {
	Start func() error
	Stop  func() error
}

func (*Graceful) Do

func (g *Graceful) Do(ctx context.Context) error

type Watchdog

type Watchdog struct {
	Postpone   time.Duration
	Register   func()
	DeRegister func()
}

func (Watchdog) Respawn

func (w Watchdog) Respawn(c <-chan os.Signal, name string, args ...string) error

Jump to

Keyboard shortcuts

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