webhook

package
v0.22.3 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2025 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Overview

Package webhook provides webhook notification support.

Index

Constants

View Source
const ProviderType = "webhook"

ProviderType defines the type of the Webhook notification provider.

Variables

This section is empty.

Functions

func MergeOptions

func MergeOptions(ctx context.Context, src Options, dst *Options, isUpdate bool) error

MergeOptions updates the destination options with the source options.

Types

type Options

type Options struct {
	Endpoint string `json:"endpoint"`
	Method   string `json:"method"`
	Format   string `json:"format"`
	Headers  string `json:"headers"` // newline-separated list of headers (key: value)
}

Options defines Webhook sender options.

func (*Options) ApplyDefaultsAndValidate

func (o *Options) ApplyDefaultsAndValidate(_ context.Context) error

ApplyDefaultsAndValidate applies default values and validates the configuration.

Jump to

Keyboard shortcuts

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