Versions in this module Expand all Collapse all v0 v0.0.3 Feb 2, 2024 v0.0.2 Feb 2, 2024 Changes in this version + func Init() v0.0.1 Feb 2, 2024 Changes in this version + func MDMsg(title string, contents []string) []byte + type Alertover struct + func NewAlertover(source string) *Alertover + func (self *Alertover) SendAlert(receiver, title, content string) string + type EmailNotifier struct + func NewEmailNotifier(host, from, password string) (*EmailNotifier, error) + func (m *EmailNotifier) SendMail(receiver string, title string, body string) error + type ErrorHook struct + func NewHook(projectName string, webhookURL string) (*ErrorHook, error) + func NewHookByENV() (*ErrorHook, error) + func (h *ErrorHook) Fire(e *logrus.Entry) error + func (h *ErrorHook) Levels() []logrus.Level + type LarkWebhook struct + func (l *LarkWebhook) MDSend(title string, contents []string) error + type Receiver struct + ID string + Type ReceiverType + func ChatReceiver(chatID string) *Receiver + func EmailReceiver(email string) *Receiver + type ReceiverType string + var ReceiverChatID ReceiverType = "chatID" + var ReceiverEmail ReceiverType = "email" + var ReceiverOpenID ReceiverType = "openID" + var ReceiverUserID ReceiverType = "userID"