package
1.2.1
Repository: https://github.com/sari3l/notify.git
Documentation: pkg.go.dev

# README

QPush

文档 http://qpush.me/zh_tw/

配置信息

参数配置类型qpushyaml读取yaml可选
Namestringnamename
Codestringcodecode
Msg*stringmsg[text]msg

调用

yaml

qpush:
  - notifyLevel: 1
    notifyFormatter: ["{{data}}"]
    name: "xxxxxxx"
    code: "xxxxxxx"
    msg: "Hello from notify. {{data}}"

api

msg := "Hello from notify."
opt := qpush.Option{}
opt.Name = "xxxxxxxxxxxxxx"
opt.Code = "xxxxxxxxxxxxxx"
opt.Msg = &msg
err := opt.ToNotifier().Send(nil)
if err != nil {
    fmt.Println(err)
}