webhook

package
v0.18.1 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2024 License: Apache-2.0 Imports: 7 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(src Options, dst *Options, isUpdate bool)

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"`
}

Options defines Webhook sender options.

func (*Options) ApplyDefaultsAndValidate

func (o *Options) ApplyDefaultsAndValidate(ctx 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