Documentation
¶
Index ¶
- func New(logging librepo.Logging, timestamp librepo.Timestamp, updater service.Updater, ...) controller.WebhookController
- type Impl
- func (c *Impl) IsWebhookController() bool
- func (c *Impl) Webhook(w http.ResponseWriter, r *http.Request)
- func (c *Impl) WebhookBitBucket(w http.ResponseWriter, r *http.Request)
- func (c *Impl) WebhookBitBucketProcessSync(ctx context.Context, eventPayload any)
- func (c *Impl) WireUp(_ context.Context, router chi.Router)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New( logging librepo.Logging, timestamp librepo.Timestamp, updater service.Updater, prValidator service.PRValidator, ) controller.WebhookController
Types ¶
type Impl ¶
type Impl struct {
Logging librepo.Logging
Timestamp librepo.Timestamp
Updater service.Updater
PRValidator service.PRValidator
EnableAsync bool
}
func (*Impl) IsWebhookController ¶
func (*Impl) Webhook ¶
func (c *Impl) Webhook(w http.ResponseWriter, r *http.Request)
Webhook is deprecated and will be removed after the switch
func (*Impl) WebhookBitBucket ¶ added in v0.38.0
func (c *Impl) WebhookBitBucket(w http.ResponseWriter, r *http.Request)
func (*Impl) WebhookBitBucketProcessSync ¶ added in v0.38.1
Click to show internal directories.
Click to hide internal directories.