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 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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