webhooks

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bitbucket

type Bitbucket struct {
}

func (Bitbucket) Handle

func (b Bitbucket) Handle(r *http.Request, hc *HookConf) (int, error)

type Gitee

type Gitee struct {
}

func (Gitee) Handle

func (g Gitee) Handle(r *http.Request, hc *HookConf) (int, error)

type Github

type Github struct {
}

func (Github) Handle

func (g Github) Handle(r *http.Request, hc *HookConf) (int, error)

type Gitlab

type Gitlab struct {
}

func (Gitlab) Handle

func (g Gitlab) Handle(r *http.Request, hc *HookConf) (int, error)

type Gogs

type Gogs struct {
}

func (Gogs) Handle

func (g Gogs) Handle(r *http.Request, hc *HookConf) (int, error)

type HookConf

type HookConf struct {
	Secret string

	RefName plumbing.ReferenceName
}

type HookService

type HookService interface {
	Handle(*http.Request, *HookConf) (int, error)
}

Jump to

Keyboard shortcuts

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