Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Addition ¶
type Addition struct {
URL string `json:"url" required:"true"`
Method string `json:"method" default:"GET" type:"option" options:"POST,GET"`
ContentType string `json:"content_type" default:"application/json"`
Headers string `json:"headers" help:"HTTP headers in JSON format"`
Body string `json:"body" default:"{\"message\":\"{{message}}\",\"title\":\"{{title}}\"}"` // 默认使用message和title字段
Username string `json:"username"`
Password string `json:"password"`
}
type WebhookSender ¶
type WebhookSender struct {
Addition
}
func (*WebhookSender) Destroy ¶
func (w *WebhookSender) Destroy() error
func (*WebhookSender) GetConfiguration ¶
func (w *WebhookSender) GetConfiguration() factory.Configuration
func (*WebhookSender) GetName ¶
func (w *WebhookSender) GetName() string
func (*WebhookSender) Init ¶
func (w *WebhookSender) Init() error
func (*WebhookSender) SendTextMessage ¶
func (w *WebhookSender) SendTextMessage(message, title string) error
Click to show internal directories.
Click to hide internal directories.