v1

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpHandler

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

func New

func New(logger log.Logger, semCh chan struct{}, webhookTimeout time.Duration, wkrTimeout time.Duration, cfg *config.Config) *HttpHandler

func (*HttpHandler) CreateNotificationFromAlerts added in v1.2.0

func (h *HttpHandler) CreateNotificationFromAlerts(w http.ResponseWriter, r *http.Request)

func (*HttpHandler) GetReceivers

func (h *HttpHandler) GetReceivers(w http.ResponseWriter, r *http.Request)

func (*HttpHandler) Notification added in v1.2.0

func (h *HttpHandler) Notification(w http.ResponseWriter, r *http.Request)

func (*HttpHandler) ServeHealthCheck

func (h *HttpHandler) ServeHealthCheck(w http.ResponseWriter, _ *http.Request)

func (*HttpHandler) ServeMetrics

func (h *HttpHandler) ServeMetrics(w http.ResponseWriter, _ *http.Request)

func (*HttpHandler) ServeReadinessCheck

func (h *HttpHandler) ServeReadinessCheck(w http.ResponseWriter, _ *http.Request)

func (*HttpHandler) ServeReload

func (h *HttpHandler) ServeReload(w http.ResponseWriter, _ *http.Request)

func (*HttpHandler) ServeStatus

func (h *HttpHandler) ServeStatus(w http.ResponseWriter, _ *http.Request)

func (*HttpHandler) Verify added in v1.2.0

func (h *HttpHandler) Verify(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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