serverchan3

package
v1.6.21 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Addition

type Addition struct {
	// APIURL 为接口完整地址,例如:https://<uid>.push.ft07.com/send/<sendkey>.send
	APIURL string `` /* 146-byte string literal not displayed */
	// Tags 为可选标签,使用 | 分割,例如:tag1|tag2|tag3
	Tags string `json:"tags" help:"可选标签,使用 | 分割,例如 tag1|tag2|tag3"`
}

Addition 为 Server酱³ 推送通道的配置项 所有字段通过管理页面以 JSON 形式进行设置

type ServerChan3Sender

type ServerChan3Sender struct {
	Addition
}

ServerChan3Sender 为 Server酱³ 推送实现

func (*ServerChan3Sender) Destroy

func (s *ServerChan3Sender) Destroy() error

Destroy 清理(当前无需处理)

func (*ServerChan3Sender) GetConfiguration

func (s *ServerChan3Sender) GetConfiguration() factory.Configuration

GetConfiguration 返回配置结构体指针

func (*ServerChan3Sender) GetName

func (s *ServerChan3Sender) GetName() string

GetName 返回推送通道名称

func (*ServerChan3Sender) Init

func (s *ServerChan3Sender) Init() error

Init 初始化(当前无需处理)

func (*ServerChan3Sender) SendTextMessage

func (s *ServerChan3Sender) SendTextMessage(message, title string) error

SendTextMessage 发送文本消息(携带标题)。 简化为固定 JSON POST:内部仅组装 {"title": ..., "desp": ...},不允许用户自定义请求体或内容类型。

Jump to

Keyboard shortcuts

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