noop

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: May 22, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Application scenarios: - Provide the monolith-friendly no-op retry capability. - Keep retry wiring valid even when production retry policies are disabled. - Offer one contract-complete fallback for bootstrap and tests.

适用场景: - 为单体或未启用治理的场景提供空实现 Retry 能力。 - 在未开启生产级重试策略时,仍然保持容器装配与调用链完整。 - 为 bootstrap 与测试提供一套契约完整的兜底实现。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct{}

Provider registers the no-op retry implementation.

Provider 注册空实现 Retry provider。

func NewProvider

func NewProvider() *Provider

NewProvider creates a no-op retry provider.

NewProvider 创建空实现 Retry provider。

func (*Provider) Boot

Boot does not need extra runtime work for the no-op provider.

Boot 对空实现 provider 不需要额外启动逻辑。

func (*Provider) DependsOn

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

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

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

func (*Provider) IsDefer

func (p *Provider) IsDefer() bool

IsDefer reports that the provider can be lazily loaded.

IsDefer 返回该 provider 可延迟加载。

func (*Provider) Name

func (p *Provider) Name() string

Name returns the provider name.

Name 返回 provider 名称。

func (*Provider) Provides

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

Provides returns the retry capability key exposed by this provider.

Provides 返回该 provider 暴露的 Retry 能力 key。

func (*Provider) Register

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

Register binds the no-op retry service into the container.

Register 将空实现 Retry 服务注册到容器。

Jump to

Keyboard shortcuts

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