messageSender

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2026 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func All

func All()

func CurrentProvider

func CurrentProvider() factory.IMessageSender

func Initialize

func Initialize()

func LoadProvider

func LoadProvider(name string, addition string) error

func SendEvent

func SendEvent(event models.EventMessage) error

func SendNotification

func SendNotification(event models.EventMessage) error

SendNotification 是通知发送的统一实现:解析事件中的客户端 UUID(外部传入可只含 UUID 字段)后委托 SendEvent。内部调用与 admin:sendNotification RPC 共用此实现。

func SendTextMessage

func SendTextMessage(message string, title string) error

func Shutdown

func Shutdown() error

Shutdown 销毁当前消息发送 provider,释放其持有的资源。供关闭流程调用。

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.

Jump to

Keyboard shortcuts

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