initial commit
This commit is contained in:
12
internal/collector/interface.go
Normal file
12
internal/collector/interface.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package collector
|
||||
|
||||
import (
|
||||
"gitea.sinav-lab.com/sinav/keenetic-exporter-v2/internal/device"
|
||||
"github.com/prometheus/client_golang/prometheus"
|
||||
)
|
||||
|
||||
type Collector interface {
|
||||
Name() string
|
||||
Collect(dev *device.Device, ch chan<- prometheus.Metric) error
|
||||
Describe(ch chan<- *prometheus.Desc)
|
||||
}
|
||||
Reference in New Issue
Block a user