Documentation
¶
Index ¶
- Constants
- func GetPush(config conf.Config) func(id string, kind string, message string)
- func HandleWechat(rep http.ResponseWriter, req *http.Request)
- func InitPushDeer() func(id, kind, message string)
- func MarkDown(title, text string, ats ...string) map[string]interface{}
- func PushMessage(title, content, message, pushID string) error
- func RegisterHandler(key string, action WechatHandler)
- func Text(text string, ats ...string) map[string]interface{}
- func TgInit()
- type Ding
- type Handle
- type Mather
- type PushPlus
- type Telegram
- type TypeSecret
- type WechatHandler
Constants ¶
View Source
const ( StartStudy = "start_study" SCORE = "score" )
Variables ¶
This section is empty.
Functions ¶
func HandleWechat ¶ added in v1.0.33
func HandleWechat(rep http.ResponseWriter, req *http.Request)
HandleWechat
@Description:处理wechat的请求接口 * @param rep * @param req
func InitPushDeer ¶ added in v1.0.33
func InitPushDeer() func(id, kind, message string)
func PushMessage ¶
func RegisterHandler ¶ added in v1.0.33
func RegisterHandler(key string, action WechatHandler)
Types ¶
type Telegram ¶ added in v1.0.33
type Telegram struct { Token string ChatId int64 Proxy string // contains filtered or unexported fields }
Telegram @Description:
func (*Telegram) Init ¶ added in v1.0.33
func (t *Telegram) Init()
Init *
- @Description:
- @receiver t
- @return func(kind string, message string)
type TypeSecret ¶
func (*TypeSecret) SendMessage ¶
func (t *TypeSecret) SendMessage(data map[string]interface{}) error
SendMessage Function to send message
type WechatHandler ¶ added in v1.0.33
type WechatHandler func(id string)
Click to show internal directories.
Click to hide internal directories.