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: 0

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