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 ¶
func (p *Provider) Boot(c runtimecontract.Container) error
Boot does not need extra runtime work for the no-op provider.
Boot 对空实现 provider 不需要额外启动逻辑。
func (*Provider) DependsOn ¶
DependsOn returns the keys this provider depends on. Noop retry has no dependencies.
DependsOn 返回该 provider 依赖的 key。 Noop retry 无依赖。
func (*Provider) IsDefer ¶
IsDefer reports that the provider can be lazily loaded.
IsDefer 返回该 provider 可延迟加载。