MCPcopy
hub / github.com/prometheus/client_golang / collectorDescribedByCollect

Struct collectorDescribedByCollect

prometheus/collector_test.go:18–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16import "testing"
17
18type collectorDescribedByCollect struct {
19 cnt Counter
20 gge Gauge
21}
22
23func (c collectorDescribedByCollect) Collect(ch chan<- Metric) {
24 ch <- c.cnt

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected