Documentation
¶
Overview ¶
FILE: internal/webhook/event.go
FILE: internal/webhook/handler.go
FILE: internal/webhook/processor.go
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
Processor Processor
Service *service.DeploymentService
Provider string
}
type NormalizedEvent ¶
type NormalizedEvent struct {
Type EventType
Provider string
Repo string
PRNumber int
Sender string
Body string
CommitSHA string
IsApproved bool
IsMerged bool
Action string // Raw action para debug
}
NormalizedEvent é o evento unificado entre providers
type Processor ¶
type Processor interface {
Parse(r *http.Request) (*ProcessorResult, error)
}
Processor extrai e normaliza eventos do payload
type ProcessorResult ¶
type ProcessorResult struct {
Event *NormalizedEvent
ShouldQueue bool
Message string
}
ProcessorResult encapsula o resultado do processamento
Click to show internal directories.
Click to hide internal directories.