webhook

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package webhook provides an HTTP server to receive and validate push event notifications from GitHub.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

Service implements an HTTP handler that listens for inbound repository notifications, validates their signatures, and triggers the monitor.

func NewService

func NewService(cfg *config.Config, triggerChan chan struct{}) *Service

NewService initializes a new Service with the required config.Config and a shared channel to signal updates to the orchestrator.

func (*Service) Start

func (s *Service) Start() error

Start launches the HTTP server and blocks until it is shut down. It exposes the /webhook endpoint on the configured config.WebhookPort.

Jump to

Keyboard shortcuts

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