Documentation
¶
Overview ¶
Package ingress implements the intentionally small webhook commit path.
Index ¶
Constants ¶
View Source
const ( // WebhookPath is the GitHub App webhook target served by ghsyncd. WebhookPath = "/webhooks/github" // HealthPath is the process liveness endpoint. HealthPath = "/healthz" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DeliveryInserter ¶
type DeliveryInserter interface {
InsertWebhookDelivery(
ctx context.Context,
arg dbgen.InsertWebhookDeliveryParams,
) (int64, error)
}
DeliveryInserter is the single allowed ingress persistence operation (SYNC_ENGINE C-I1/C-P1).
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler verifies and durably records GitHub webhook deliveries.
func NewHandler ¶
func NewHandler( deliveries DeliveryInserter, webhookSecret string, maxBodyBytes int64, requestTimeout time.Duration, ) *Handler
NewHandler constructs a webhook handler around sqlc's generated insert.
Click to show internal directories.
Click to hide internal directories.