svrctrl

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GoAndRestartOnError

func GoAndRestartOnError(ctx context.Context, errGroup *errgroup.Group, name string, f func() error)

func RunAndRestartOnError

func RunAndRestartOnError(ctx context.Context, name string, f func() error) error

RunAndRestartOnError runs function until context done. Always restart if failed.

func Trap

func Trap(cleanup func())

Trap 捕获信号.

Types

This section is empty.

Jump to

Keyboard shortcuts

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