webhook

package
v0.3.9 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NotifierConfig added in v0.3.0

type NotifierConfig struct {
	// Webhook URL。
	Url string `json:"url"`
	// 是否允许不安全的连接。
	AllowInsecureConnections bool `json:"allowInsecureConnections,omitempty"`
}

type NotifierProvider added in v0.3.0

type NotifierProvider struct {
	// contains filtered or unexported fields
}

func NewNotifier added in v0.3.0

func NewNotifier(config *NotifierConfig) (*NotifierProvider, error)

func (*NotifierProvider) Notify added in v0.3.0

func (n *NotifierProvider) Notify(ctx context.Context, subject string, message string) (res *notifier.NotifyResult, err error)

func (*NotifierProvider) WithLogger added in v0.3.5

func (n *NotifierProvider) WithLogger(logger *slog.Logger) notifier.Notifier

Jump to

Keyboard shortcuts

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