Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContentParams ¶
type ContentPost ¶
type ContentPost struct {
Post Post `json:"post"`
}
type FeishPush ¶
type FeishPush struct {
Token string
Message PostMessage
}
type MailContent ¶
type PostMessage ¶
type PostMessage struct {
Timestamp string `json:"timestamp"`
Sign string `json:"sign"`
MsgType string `json:"msg_type"`
Content ContentPost `json:"content"`
}
type PushDeerPush ¶
type PushDeerPush struct {
Message struct {
PushKey string `json:"pushkey"`
Text string `json:"text"`
Desp string `json:"desp"`
Type string `json:"type"`
}
}
func (*PushDeerPush) Send ¶
func (p *PushDeerPush) Send() error
type PushMail ¶
func (*PushMail) SetContent ¶
func (p *PushMail) SetContent(tomail []string, title string, text []byte) *MailContent
SetContent Set a set of sending parameters, MailContent carries the basic information of the mail.
type PushMessage ¶
type PushMessage interface {
Send() error
}
type ServerChanMessage ¶
type ServerChanPush ¶
type ServerChanPush struct {
Key string
Message ServerChanMessage
}
func (*ServerChanPush) Send ¶
func (s *ServerChanPush) Send() error
type ZhCn ¶
type ZhCn struct {
Title string `json:"title"`
Content [][]ContentParams `json:"content"`
}
Click to show internal directories.
Click to hide internal directories.