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) GetConfiguration ¶
func (s *ServerChan3Sender) GetConfiguration() factory.Configuration
GetConfiguration 返回配置结构体指针
func (*ServerChan3Sender) SendTextMessage ¶
func (s *ServerChan3Sender) SendTextMessage(message, title string) error
SendTextMessage 发送文本消息(携带标题)。 简化为固定 JSON POST:内部仅组装 {"title": ..., "desp": ...},不允许用户自定义请求体或内容类型。
Click to show internal directories.
Click to hide internal directories.