Change storage format

This commit is contained in:
Thomas Roehl
2021-10-04 15:23:43 +02:00
parent 8956ce7ad5
commit 558bbaba59
19 changed files with 874 additions and 283 deletions

View File

@@ -1,7 +1,8 @@
package sinks
import (
"time"
// "time"
lp "github.com/influxdata/line-protocol"
)
type SinkConfig struct {
@@ -25,6 +26,6 @@ type Sink struct {
type SinkFuncs interface {
Init(config SinkConfig) error
Write(measurement string, tags map[string]string, fields map[string]interface{}, t time.Time) error
Write(point lp.MutableMetric) error
Close()
}