MCPcopy Create free account
hub / github.com/cortexproject/cortex / NilPeer

Struct NilPeer

pkg/alertmanager/alertmanager.go:653–653  ·  view source on GitHub ↗

NilPeer and NilChannel implements the Alertmanager clustering interface used by the API to expose cluster information. In a multi-tenant environment, we choose not to expose these to tenants and thus are not implemented.

Source from the content-addressed store, hash-verified

651// NilPeer and NilChannel implements the Alertmanager clustering interface used by the API to expose cluster information.
652// In a multi-tenant environment, we choose not to expose these to tenants and thus are not implemented.
653type NilPeer struct{}
654
655func (p *NilPeer) Name() string { return "" }
656func (p *NilPeer) Status() string { return "ready" }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected