webhook

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(config Config) (http.Handler, error)

New returns a new webhook handler.

Types

type Config

type Config struct {
	MetricsRecorder MetricsRecorder
	Marker          mark.Marker
	MemoryFixer     mem.Fixer
	Logger          log.Logger
}

Config is the handler configuration.

type MetricsRecorder

type MetricsRecorder interface {
	gohttpmetrics.Recorder
	webhook.MetricsRecorder
}

MetricsRecorder is the service used to record metrics in the internal HTTP webhook.

Jump to

Keyboard shortcuts

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