Refactor: Embed Init() into New() function

This commit is contained in:
Holger Obermaier
2022-02-23 14:56:29 +01:00
parent 24e12ccc57
commit 73981527d3
8 changed files with 234 additions and 265 deletions

View File

@@ -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()