webhook

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package webhook receives GitHub App workflow_job events and triggers the autoscaler. Requires GitHub to reach this endpoint (public IP or a tunnel such as smee.io / cloudflared / ngrok). Behind NAT, prefer autoscale polling.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server is the webhook HTTP receiver.

func New

func New(listen, path, secret string, scaler *autoscale.Scaler, logger *slog.Logger) *Server

New builds the webhook server.

func (*Server) Start

func (s *Server) Start(ctx context.Context) error

Start runs the server until ctx is cancelled.

Jump to

Keyboard shortcuts

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