webhook

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2026 License: MIT Imports: 10 Imported by: 0

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

Jump to

Keyboard shortcuts

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