14 lines
209 B
Go
14 lines
209 B
Go
|
package collector
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
|
||
|
"github.com/prometheus/client_golang/prometheus"
|
||
|
)
|
||
|
|
||
|
type Collector interface {
|
||
|
Collect() interface{}
|
||
|
PromCollector() prometheus.Collector
|
||
|
Run(ctx context.Context)
|
||
|
}
|