webhook

package
v0.3.0-rc0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name        string = "webhook"
	Description string = "Send a message to an HTTP endpoint"
	Permissions string = ""
	Example     string = `` /* 208-byte string literal not displayed */

)

Variables

This section is empty.

Functions

This section is empty.

Types

type Notifier

type Notifier struct{}

func Register

func Register() *Notifier

func (Notifier) Information

func (n Notifier) Information() models.Information

func (Notifier) Init

func (n Notifier) Init(fields map[string]any) error

func (Notifier) Parameters

func (n Notifier) Parameters() models.Parameters

func (Notifier) Run

func (n Notifier) Run(log utils.LogLine) error

type Parameters

type Parameters struct {
	CustomHeaders map[string]string `field:"custom_headers"`
	URL           string            `field:"url"`
	HTTPMethod    string            `field:"http_method" default:"POST"`
	ContentType   string            `field:"content_type" default:"application/json; charset=utf-8"`
	UserAgent     string            `field:"user_agent" default:"falco-talon"`
}

Jump to

Keyboard shortcuts

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