webhook

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2022 License: Apache-2.0 Imports: 19 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
	IngressRegexHostValidator  ingress.Validator
	IngressSingleHostValidator ingress.Validator
	ServiceMonitorSafer        prometheus.ServiceMonitorSafer
	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