lifecycle

package
v0.0.1-rc01 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// InterfaceAware 接口实现注入
	InterfaceAware = lifecycle{
		HookName: "interface-aware",
		Order:    10,
	}

	// PostProcessor 后置处理
	PostProcessor = lifecycle{
		HookName: "post-processor",
		Order:    100,
	}

	// InitData 数据初始化
	InitData = lifecycle{
		HookName: "init-data",
		Order:    1000,
	}
)

Functions

func AddHook

func AddHook(l lifecycle, handler func(), opts ...hook.Option)

func AddHookWithOrder

func AddHookWithOrder(l lifecycle, order int, handler func(), opts ...hook.Option)

func DoHooks

func DoHooks()

Types

This section is empty.

Jump to

Keyboard shortcuts

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