mirror of
https://github.com/ClusterCockpit/cc-metric-collector.git
synced 2025-08-14 14:52:58 +02:00
Refactor: Embed Init() into New() function
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
package sinks
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
|
||||
lp "github.com/ClusterCockpit/cc-metric-collector/internal/ccMetric"
|
||||
)
|
||||
|
||||
@@ -17,7 +15,6 @@ type sink struct {
|
||||
}
|
||||
|
||||
type Sink interface {
|
||||
Init(name string, config json.RawMessage) error
|
||||
Write(point lp.CCMetric) error
|
||||
Flush() error
|
||||
Close()
|
||||
|
Reference in New Issue
Block a user