Documentation
¶
Overview ¶
Package notify : 通知処理
Package notify : 通知処理
Package notify : 通知処理
Package notify : 通知処理
Package notify : 通知処理
Index ¶
- func ExecNotifyCmd(cmd string, level int) error
- func GetNotifyOAuth2TokenStep1() (string, error)
- func GetNotifyOAuth2TokenStep2(state, code string) error
- func PostWebhook(url string, j []byte) error
- func SendActionMail(subject, body string)
- func SendChat(c *datastore.NotifyConfEnt, title, level, message string) error
- func SendNotifyChat(l *datastore.EventLogEnt)
- func SendTestMail(testConf *datastore.NotifyConfEnt) error
- func Start(ctx context.Context, wg *sync.WaitGroup) error
- func WebHookTest(n *datastore.NotifyConfEnt) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecNotifyCmd ¶ added in v1.13.0
func GetNotifyOAuth2TokenStep1 ¶ added in v1.60.0
func GetNotifyOAuth2TokenStep2 ¶ added in v1.60.0
func PostWebhook ¶ added in v1.58.0
func SendActionMail ¶ added in v1.35.0
func SendActionMail(subject, body string)
SendActionMail sends a notification email with the specified subject and body.
func SendChat ¶ added in v1.7.0
func SendChat(c *datastore.NotifyConfEnt, title, level, message string) error
func SendNotifyChat ¶ added in v1.7.0
func SendNotifyChat(l *datastore.EventLogEnt)
func SendTestMail ¶
func SendTestMail(testConf *datastore.NotifyConfEnt) error
func WebHookTest ¶ added in v1.58.0
func WebHookTest(n *datastore.NotifyConfEnt) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.