console

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultSupportedEvents = webhook.Events{
	Supported: map[string]webhook.Event{
		// contains filtered or unexported fields
	},
	GetEventType: webhook.GetEventTypeByPath(webhookEventPath),
}

Functions

func AddSourceToRouter

func AddSourceToRouter(
	ctx context.Context,
	cfg config.GenericConfig,
	pg pipeline.IPipelineGroup,
	router *swagger.Router[fiber.Handler, fiber.Router],
) error

Types

type Config

type Config struct {
	Authentication ValidationConfig `json:"authentication"`
	WebhookPath    string           `json:"webhookPath"`
}

func (*Config) Validate

func (c *Config) Validate() error

type ValidationConfig

type ValidationConfig struct {
	Secret     config.SecretSource `json:"secret"`
	HeaderName string              `json:"-"`
}

func (ValidationConfig) CheckSignature

func (h ValidationConfig) CheckSignature(req webhook.ValidatingRequest) error

CheckSignature will read the webhook signature header and the given secret for validating the webhook payload.

Jump to

Keyboard shortcuts

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