Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler serves POST /webhooks/gitlab/{external_connection_id} — the shared inbound endpoint for every trigger linked to one GitLab connection (see trigger_provider_links). Unlike tract_webhook.Handler (one trigger, its own secret/URL), auth here is against the connection's own webhook secret, and a single delivery may fan out to N triggers, each gated by its own TriggerMatchers (tract.MatchesRequest) — e.g. a gitlab_push trigger only fires on X-Gitlab-Event: Push Hook, so a Merge Request delivery to the same connection URL doesn't misfire it.
func New ¶
func New( baseCtx context.Context, externalConns repository.ExternalConnectionRepo, triggers repository.TriggersRepo, momSvc service.MomService, tractSvc service.TractService, ) *Handler
Click to show internal directories.
Click to hide internal directories.