Use new sink instances to allow multiple of same sink type

This commit is contained in:
Thomas Roehl
2022-02-22 16:15:25 +01:00
parent 9cfbe10247
commit 18a226183c
9 changed files with 65 additions and 26 deletions

View File

@@ -17,7 +17,7 @@ type sink struct {
}
type Sink interface {
Init(config json.RawMessage) error
Init(name string, config json.RawMessage) error
Write(point lp.CCMetric) error
Flush() error
Close()