webhook

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package webhook provides an output that sends data to an HTTP or HTTPS endpoint via configurable webhooks. It supports customizable HTTP headers, basic authentication, custom content types, and configurable TLS settings for secure communication. This package is intended to enable sending events or log lines to web services that accept data over HTTP, often used for integrations or alerting.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(opts *output.Options) (output.Output, error)

New returns a new webhook output.

Types

type Output

type Output struct {
	// contains filtered or unexported fields
}

Output is a webhook output.

func (*Output) Close

func (o *Output) Close() error

Close closes the connection to the configured endpoint.

func (*Output) DialContext

func (o *Output) DialContext(ctx context.Context) error

DialContext connects to the configured endpoint.

func (*Output) Write

func (o *Output) Write(b []byte) (int, error)

Write writes data to the configured endpoint.

Jump to

Keyboard shortcuts

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