webhooks

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Actor

type Actor struct {
	Nickname    string `json:"nickname"`
	DisplayName string `json:"display_name"`
	UUID        string `json:"uuid"`
}

type Change

type Change struct {
	Commits []Commit `json:"commits"`
	New     *Ref     `json:"new,omitempty"`
	Old     *Ref     `json:"old,omitempty"`
}

type Commit

type Commit struct {
	Hash    string `json:"hash"`
	Message string `json:"message"`
	Author  Actor  `json:"author"`
	Date    string `json:"date"`
}

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(
	svc *webhooks.Service,
	logger *zap.Logger,
) *Handler

func (*Handler) Register

func (h *Handler) Register(r fiber.Router)
type Link struct {
	Href string `json:"href"`
}

type PushData

type PushData struct {
	Changes []Change `json:"changes"`
}

type PushEvent

type PushEvent struct {
	Push       PushData   `json:"push"`
	Repository Repository `json:"repository"`
	Actor      Actor      `json:"actor"`
}

type Ref

type Ref struct {
	Type   string `json:"type"`
	Name   string `json:"name"`
	Target Commit `json:"target"`
}
type RepoLinks struct {
	Self Link `json:"self"`
}

type Repository

type Repository struct {
	FullName string    `json:"full_name"`
	Name     string    `json:"name"`
	UUID     string    `json:"uuid"`
	Scm      string    `json:"scm"`
	Links    RepoLinks `json:"links"`
}

Jump to

Keyboard shortcuts

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