type processCollector … type ProcessCollectorOpts … // NewProcessCollector is the obsolete version of collectors.NewProcessCollector. // See there for documentation. // // Deprecated: Use collectors.NewProcessCollector instead. func NewProcessCollector(opts ProcessCollectorOpts) Collector { … } // Describe returns all descriptions of the collector. func (c *processCollector) Describe(ch chan<- *Desc) { … } // Collect returns the current state of all metrics of the collector. func (c *processCollector) Collect(ch chan<- Metric) { … } func (c *processCollector) reportError(ch chan<- Metric, desc *Desc, err error) { … } // NewPidFileFn returns a function that retrieves a pid from the specified file. // It is meant to be used for the PidFn field in ProcessCollectorOpts. func NewPidFileFn(pidFilePath string) func() (int, error) { … }