init provides the selfCollector with a reference to the metric it is supposed to collect. It is usually called within the factory function to create a metric. See example.
(self Metric)
| 106 | // to collect. It is usually called within the factory function to create a |
| 107 | // metric. See example. |
| 108 | func (c *selfCollector) init(self Metric) { |
| 109 | c.self = self |
| 110 | } |
| 111 | |
| 112 | // Describe implements Collector. |
| 113 | func (c *selfCollector) Describe(ch chan<- *Desc) { |
no outgoing calls
no test coverage detected