MCPcopy
hub / github.com/prometheus/prometheus / onceProvider

Struct onceProvider

discovery/manager_test.go:1506–1508  ·  view source on GitHub ↗

onceProvider sends updates once (if any) and closes the update channel.

Source from the content-addressed store, hash-verified

1504
1505// onceProvider sends updates once (if any) and closes the update channel.
1506type onceProvider struct {
1507 tgs []*targetgroup.Group
1508}
1509
1510func (o onceProvider) Run(_ context.Context, ch chan<- []*targetgroup.Group) {
1511 if len(o.tgs) > 0 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected