noop

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package noop provides no-op metadata implementation for monolith scenarios. All operations return empty values or no-op behavior. Suitable for single-service deployments without cross-boundary metadata propagation.

空元数据包提供空元数据实现,用于单体应用场景。 所有操作返回空值或空行为。 适用于单服务部署,无需跨边界元数据传播。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct{}

Provider 提供 noop metadata 实现。

中文说明: - 单体项目默认使用此 provider; - 不引入任何外部依赖; - 所有操作返回空值或空操作,单体项目无需 metadata 传递。

func NewProvider

func NewProvider() *Provider

func (*Provider) Boot

func (*Provider) DependsOn

func (p *Provider) DependsOn() []string

DependsOn returns the keys this provider depends on. Noop metadata has no dependencies.

DependsOn 返回该 provider 依赖的 key。 Noop metadata 无依赖。

func (*Provider) IsDefer

func (p *Provider) IsDefer() bool

func (*Provider) Name

func (p *Provider) Name() string

func (*Provider) Provides

func (p *Provider) Provides() []string

func (*Provider) Register

func (p *Provider) Register(c runtimecontract.Container) error

Jump to

Keyboard shortcuts

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