rule

package
v0.15.0-rc.4 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Proxy

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

Proxy fan-outs requests to multiple endpoints serving rules and alerts. Results are un-sorted and concatenated as-is. In case of errors from any endpoint, warning log and partial results are returned.

func NewProxy

func NewProxy(logger log.Logger, c httpClient, ruleEndpoints []url.URL) *Proxy

NewProxy creates a new proxy.

func (*Proxy) Alerts

func (p *Proxy) Alerts(w http.ResponseWriter, req *http.Request)

func (*Proxy) RuleGroups

func (p *Proxy) RuleGroups(w http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

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