api

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API added in v1.2.0

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

API defines handler functions for receiving Alertmanager endpoints.

func NewInRouter

func NewInRouter(logger log.FieldLogger, r *mux.Router, ch chan<- *alertmanager.Webhook) *API

NewInRouter creates new API instance which will register its handlers in the given router.

func (*API) Close added in v1.2.0

func (a *API) Close()

Close disabled receiving of new alerts in the API used mainly for graceful shutdown.

Jump to

Keyboard shortcuts

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