hooks

package
v3.2.22 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Do

func Do(stage Stage)

Do 执行

func Register

func Register(stage Stage, fns ...func())

Register 注册一个defer函数

Types

type Stage

type Stage int

Stage ...

const (
	StageBeforeLoadConfig Stage = iota + 1
	StageAfterLoadConfig
	StageBeforeStop
	StageAfterStop
)

Stage_BeforeLoadConfig ...

func (Stage) String

func (s Stage) String() string

String ...

Jump to

Keyboard shortcuts

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