receivers

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: May 27, 2020 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGitHubReceiver

func NewGitHubReceiver(ctx context.Context, uri string) (webhookd.WebhookReceiver, error)

func NewInsecureReceiver

func NewInsecureReceiver(ctx context.Context, uri string) (webhookd.WebhookReceiver, error)

func NewReceiver

func NewReceiver(ctx context.Context, uri string) (webhookd.WebhookReceiver, error)

func NewSlackReceiver

func NewSlackReceiver(ctx context.Context, uri string) (webhookd.WebhookReceiver, error)

func Receivers

func Receivers() []string

func RegisterReceiver

func RegisterReceiver(ctx context.Context, scheme string, init_func ReceiverInitializationFunc) error

Types

type GitHubReceiver

type GitHubReceiver struct {
	webhookd.WebhookReceiver
	// contains filtered or unexported fields
}

func (GitHubReceiver) Receive

func (wh GitHubReceiver) Receive(ctx context.Context, req *http.Request) ([]byte, *webhookd.WebhookError)

type InsecureReceiver

type InsecureReceiver struct {
	webhookd.WebhookReceiver
}

func (InsecureReceiver) Receive

func (wh InsecureReceiver) Receive(ctx context.Context, req *http.Request) ([]byte, *webhookd.WebhookError)

type ReceiverInitializationFunc

type ReceiverInitializationFunc func(ctx context.Context, uri string) (webhookd.WebhookReceiver, error)

type SlackReceiver

type SlackReceiver struct {
	webhookd.WebhookReceiver
}

func (SlackReceiver) Receive

func (sl SlackReceiver) Receive(ctx context.Context, req *http.Request) ([]byte, *webhookd.WebhookError)

Jump to

Keyboard shortcuts

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