webhook

package
v0.8.4 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Core

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

Core represent the channel of the type Webhook

func NewCore

func NewCore(cfg webhook.Settings, version string) *Core

NewCore creates new Core channel

func (*Core) Send

func (w *Core) Send(body io.Reader, m *message.Message) (*http.Response, error)

Send the message to the channel

type Webhook

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

Webhook implements a Provider for webhook notifications.

func New

func New(cfg webhook.Webhook, version string, logger *zap.Logger) (*Webhook, error)

New creates new Webhook channel

func (*Webhook) Ignore added in v0.8.2

func (w *Webhook) Ignore() bool

func (*Webhook) Name

func (w *Webhook) Name() string

Name returns the channel name

func (*Webhook) Send

func (w *Webhook) Send(m *message.Message) error

Send the message to the channel

Jump to

Keyboard shortcuts

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