webhooks

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WebhookConfig

type WebhookConfig struct {
	Vendor WebhookVendor `yaml:"vendor"`
	Secret string        `yaml:"secret"`
	Events []string      `yaml:"events"`
}

type WebhookServer

type WebhookServer struct {
	*http.Server
	// contains filtered or unexported fields
}

func NewWebhookServer

func NewWebhookServer(addr string) *WebhookServer

func (*WebhookServer) RegisterWebhookHandler

func (ws *WebhookServer) RegisterWebhookHandler(repo_name string, f func(http.ResponseWriter, *http.Request)) error

type WebhookVendor

type WebhookVendor string
const (
	Gitea  WebhookVendor = "gitea"
	Github WebhookVendor = "github"
	Gitlab WebhookVendor = "gitlab"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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