handler

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2026 License: Apache-2.0 Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Base

type Base struct {
	githubapp.ClientCreator

	Installations githubapp.InstallationsService
	BaseConfig    *baseapp.HTTPConfig
	Options       *DashboardOptions

	// Database connection
	DB *sql.DB

	// WebSocket hub for real-time updates
	WSHub *websocket.Hub

	AppName string
}

Base provides common dependencies for all handlers

type CheckRunHandler

type CheckRunHandler struct {
	Base
}

CheckRunHandler processes check_run webhook events

func (*CheckRunHandler) Handle

func (h *CheckRunHandler) Handle(ctx context.Context, _, _ string, payload []byte) error

Handle processes a check_run webhook event

func (*CheckRunHandler) Handles

func (h *CheckRunHandler) Handles() []string

Handles returns the GitHub event types this handler processes

type DashboardOptions

type DashboardOptions struct {
	EnableRealtime    bool
	DefaultTimeWindow string
	MaxReposPerPage   int
}

DashboardOptions contains runtime configuration

type InstallationHandler

type InstallationHandler struct {
	Base
}

InstallationHandler processes installation webhook events

func (*InstallationHandler) Handle

func (h *InstallationHandler) Handle(ctx context.Context, eventType, _ string, payload []byte) error

Handle processes installation webhook events

func (*InstallationHandler) Handles

func (h *InstallationHandler) Handles() []string

Handles returns the GitHub event types this handler processes

type WorkflowRunHandler

type WorkflowRunHandler struct {
	Base
}

WorkflowRunHandler processes workflow_run webhook events

func (*WorkflowRunHandler) Handle

func (h *WorkflowRunHandler) Handle(ctx context.Context, _, _ string, payload []byte) error

Handle processes a workflow_run webhook event

func (*WorkflowRunHandler) Handles

func (h *WorkflowRunHandler) Handles() []string

Handles returns the GitHub event types this handler processes

Jump to

Keyboard shortcuts

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