webhook

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterMatches

func FilterMatches(filter *regexp.Regexp, data string) bool

func SendPost

func SendPost(url string, payload []byte) error

Types

type Notifier

type Notifier struct {
	URL string
	// contains filtered or unexported fields
}

func NewNotifier added in v0.0.2

func NewNotifier(url string, filter string) *Notifier

func (*Notifier) Filter

func (wh *Notifier) Filter() *regexp.Regexp

func (*Notifier) Name

func (wh *Notifier) Name() string

func (*Notifier) Payload

func (wh *Notifier) Payload(e types.InteractionEvent) ([]byte, error)

func (*Notifier) Send

func (wh *Notifier) Send(event types.InteractionEvent) error

Jump to

Keyboard shortcuts

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