webhook

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler interface {
	Handle()
}

type Provider added in v0.2.0

type Provider interface {
	Init(*config.Config) error
	IsFromProvider(*http.Request) bool
	GetEvent(*http.Request) (event.Event, error)
}

type Webhook

type Webhook struct {
	client.Client
	Config    *config.Config
	Providers []Provider
}

func New

func New(c *config.Config) *Webhook

func (*Webhook) GetHttpHandler

func (w *Webhook) GetHttpHandler() func(c echo.Context) error

func (*Webhook) Init

func (w *Webhook) Init() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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