Refactor: Embed Init() into New() function

This commit is contained in:
Holger Obermaier
2022-02-23 15:15:17 +01:00
parent 3598aed090
commit 2f36375470
3 changed files with 28 additions and 40 deletions

View File

@@ -1,9 +1,6 @@
package receivers
import (
// "time"
"encoding/json"
lp "github.com/ClusterCockpit/cc-metric-collector/internal/ccMetric"
)
@@ -25,7 +22,6 @@ type receiver struct {
}
type Receiver interface {
Init(name string, config json.RawMessage) error
Start()
Close()
Name() string