webhook

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 2, 2026 License: GPL-3.0 Imports: 6 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL