hooks

package
v0.11.15 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: Apache-2.0 Imports: 2 Imported by: 1

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
const (
	Stage_BeforeLoadConfig Stage = iota
	Stage_AfterLoadConfig
	Stage_BeforeRun
	Stage_BeforeStop
	Stage_AfterStop
	StageMax
)

func (Stage) String

func (s Stage) String() string

Jump to

Keyboard shortcuts

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