Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WebhookController ¶
type WebhookController struct {
Processor webhook.Processor
Service *service.DeploymentService
Provider string
}
WebhookController handles webhook events from SCM providers This is the Atlantis-style controller (handler as struct method)
func NewWebhookController ¶
func NewWebhookController( processor webhook.Processor, deployService *service.DeploymentService, provider string, ) *WebhookController
NewWebhookController creates a new webhook controller
func (*WebhookController) ServeHTTP ¶
func (c *WebhookController) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP implements http.Handler interface NOTA: Este é o código EXATO do handler atual, só mudou o tipo
Click to show internal directories.
Click to hide internal directories.