Documentation
¶
Index ¶
- func All()
- func CurrentProvider() factory.IMessageSender
- func Initialize()
- func LoadProvider(name string, addition string) error
- func SendEvent(event models.EventMessage) error
- func SendNotification(event models.EventMessage) error
- func SendOperationalNotice(message, title string) error
- func SendTextMessage(message string, title string) error
- func Shutdown() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CurrentProvider ¶
func CurrentProvider() factory.IMessageSender
func Initialize ¶
func Initialize()
func LoadProvider ¶
func SendEvent ¶
func SendEvent(event models.EventMessage) error
func SendNotification ¶
func SendNotification(event models.EventMessage) error
SendNotification 是通知发送的统一实现:解析事件中的客户端 UUID(外部传入可只含 UUID 字段)后委托 SendEvent。内部调用与 admin:sendNotification RPC 共用此实现。
func SendOperationalNotice ¶ added in v1.7.3
SendOperationalNotice is a single attempt with a stable provider lifetime. Disabled/unconfigured delivery is not an acknowledgement. Never propagate a provider error containing credentials to an operational log or alert state.
func SendTextMessage ¶
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package outboundhttp provides the HTTP client used by configurable notification senders.
|
Package outboundhttp provides the HTTP client used by configurable notification senders. |
Click to show internal directories.
Click to hide internal directories.