gitlab

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidToken = errors.New("invalid X-Gitlab-Token header")
	ErrMissingToken = errors.New("missing X-Gitlab-Token header")
)

Functions

This section is empty.

Types

type Receiver

type Receiver struct{}

Receiver validates and parses classic GitLab project webhooks.

func NewReceiver

func NewReceiver() *Receiver

NewReceiver creates a GitLab webhook receiver.

func (*Receiver) Parse

func (p *Receiver) Parse(req *http.Request, body []byte) (receiver.ParseResult, error)

func (*Receiver) Validate

func (p *Receiver) Validate(req *http.Request, secretToken, body []byte) error

Jump to

Keyboard shortcuts

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