notify_launcher

package
v0.0.0-...-476b199 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 3, 2023 License: LGPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Notify *notify.Notify
View Source
var NotifyCtx = context.Background()

Functions

func AdminNotify

func AdminNotify(comment *model.Comment, pComment *model.Comment)

func Init

func Init()

func SendBark

func SendBark(title string, msg string)

Bark 发送

func SendLark

func SendLark(title string, msg string)

飞书发送

func SendNotify

func SendNotify(comment *model.Comment, pComment *model.Comment)

通知发送 (from comment to parentComment)

func SendWebHook

func SendWebHook(subject string, body string, comment *model.Comment, pComment *model.Comment)

WebHook 发送

Types

type NotifyWebHookReqBody

type NotifyWebHookReqBody struct {
	NotifySubject string      `json:"notify_subject"`
	NotifyBody    string      `json:"notify_body"`
	Comment       interface{} `json:"comment"`
	ParentComment interface{} `json:"parent_comment"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL