Describe returns all descriptions of the collector.
(ch chan<- *Desc)
| 293 | |
| 294 | // Describe returns all descriptions of the collector. |
| 295 | func (c *goCollector) Describe(ch chan<- *Desc) { |
| 296 | c.base.Describe(ch) |
| 297 | for _, i := range c.msMetrics { |
| 298 | ch <- i.desc |
| 299 | } |
| 300 | for _, m := range c.rmExposedMetrics { |
| 301 | ch <- m.Desc() |
| 302 | } |
| 303 | } |
| 304 | |
| 305 | // Collect returns the current state of all metrics of the collector. |
| 306 | func (c *goCollector) Collect(ch chan<- Metric) { |