Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BearyChatSender ¶
sender
var BearyChatPusher BearyChatSender
bearychat pusher
func (BearyChatSender) BuildMessage ¶
func (f BearyChatSender) BuildMessage(notification *models.Notification) string
build message
func (BearyChatSender) Send ¶
func (f BearyChatSender) Send(notifications []*models.Notification)
send
func (BearyChatSender) SingleSend ¶
func (f BearyChatSender) SingleSend(notification *models.Notification)
send notification
type LogSender ¶
type LogSender struct {
Sender
}
sender
var LogPusher LogSender
log pusher
func (LogSender) BuildMessage ¶
func (f LogSender) BuildMessage(notification *models.Notification) string
build message
func (LogSender) SingleSend ¶
func (f LogSender) SingleSend(notification *models.Notification)
send notification
type SlackMessage ¶
type SlackMessage struct { ID uint64 `json:"id"` Type string `json:"type"` Channel string `json:"channel"` AsUser bool `json:"as_user"` Text string `json:"text"` Token string `json:"token"` }
SlackMessage slack message model
type SlackSender ¶
type SlackSender struct {
Sender
}
SlackSender sender
var SlackPusher SlackSender
SlackPusher pusher
func (SlackSender) BuildMessage ¶
func (s SlackSender) BuildMessage(notification *models.Notification) string
BuildMessage build message
func (SlackSender) SingleSend ¶
func (s SlackSender) SingleSend(notification *models.Notification)
SingleSend send notification
Click to show internal directories.
Click to hide internal directories.