lifecyclebuilder

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct {
	Setter lifecycle.Lifecycle
	Getter lifecycle.Getter
}

Provider 同时暴露生命周期钩子的写入侧(Setter)与读取侧(Getter), 供依赖注入容器装配使用。

func New

func New(handlers []lifecycle.Handler) Provider

New 通过给定的 handlers 构建生命周期 Provider, 每个 handler 在构建期向内部实现注册各阶段钩子。

Jump to

Keyboard shortcuts

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