Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewManagementHandler ¶ added in v0.18.0
NewManagementHandler wires the management handler.
Types ¶
type ManagementHandler ¶ added in v0.18.0
type ManagementHandler struct {
// contains filtered or unexported fields
}
ManagementHandler serves the admin-only project webhook management endpoints. It is registered through the group:"handlers" fx path, after the JWT middleware.
func (*ManagementHandler) Register ¶ added in v0.18.0
func (h *ManagementHandler) Register(r fiber.Router)
Register wires the admin-only webhook management routes.
type PushEvent ¶
type PushEvent struct {
Push PushData `json:"push"`
Repository Repository `json:"repository"`
Actor Actor `json:"actor"`
}
type Repository ¶
type WebhookStatusResponse ¶ added in v0.18.0
type WebhookStatusResponse struct {
Status string `json:"status" example:"registered"`
HookUUID *string `json:"hook_uuid" example:"{abc-123}"`
CallbackURL string `json:"callback_url" example:"https://bitissues.example.com/api/v1/webhooks/bitbucket/push"`
FailureReason *string `json:"failure_reason" example:"Bitbucket OAuth is not connected"`
UpdatedAt *string `json:"updated_at" example:"2026-09-29T12:00:00Z"`
}
WebhookStatusResponse implements the canonical webhook contract success body. Status is one of registered, not_registered, failed, unavailable.
func NewWebhookStatusResponse ¶ added in v0.18.0
func NewWebhookStatusResponse(st *management.WebhookStatus) WebhookStatusResponse
NewWebhookStatusResponse maps a management status to the wire DTO.
Click to show internal directories.
Click to hide internal directories.