Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Name = "lark" Description = `Send error messages to Lark. [README](https://github.com/caiguanhao/goerrbit/tree/master/plugins/lark)` DefaultTemplate = `{{.Message}} {{.AppName}} ({{.Environment}}) {{.ErrorClass}} ({{.Location}}) {{.Url}}` DefaultPostTemplate = `` /* 1044-byte string literal not displayed */ )
Functions ¶
Types ¶
type Lark ¶
type Lark struct {
AppId string `validate:"required" label:"App ID" placeholder:"Lark App ID"`
AppSecret string `validate:"required" type:"password" label:"App Secret" placeholder:"Lark App Secret"`
Target string `validate:"required" label:"Target" hint:"ID of a chat or user" placeholder:"Chat or user"`
MsgType msgtyp `validate:"oneof=0 1" type:"select" label:"Message Type"`
Template string `label:"Template" type:"textarea" placeholder:"Leave this blank to use default template"`
}
Click to show internal directories.
Click to hide internal directories.