provider

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2026 License: MIT Imports: 2 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 interface {
	// Send 发送消息
	Send(ctx context.Context, n notification.Notification) (notification.NotificationResponse, error)
}

type Selector

type Selector interface {
	// Next 获取下一个供应商,无可用供应商时返回错误
	Next(ctx context.Context, n notification.Notification) (Provider, error)
}

Selector 供应商选择器接口

type SelectorBuilder

type SelectorBuilder interface {
	// Build 构造选择器,可以在Build方法上添加参数来构建更复杂的选择器
	Build() (Selector, error)
}

SelectorBuilder 供应商选择器的构造器

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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