Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrUnsupportedDataStorageDriver = errors.New("unsupported data storage driver")
)
Functions ¶
func ToDataStorage ¶
func ToDataStorage(ds *DataStorage) func(string, interface{}) error
Types ¶
type DataStorage ¶
type DataStorage interface {
Write(ctx context.Context, measurement string, tags map[string]string, data map[string]interface{}) error
}
func NewDataStorage ¶
func NewDataStorage(name string, args ...interface{}) (DataStorage, error)
func NewDummyDataStorage ¶
func NewDummyDataStorage(args ...interface{}) (DataStorage, error)
func NewInfluxdb2DataStorage ¶
func NewInfluxdb2DataStorage(args ...interface{}) (DataStorage, error)
type DataStorageFactory ¶
type DataStorageFactory func(...interface{}) (DataStorage, error)
type DummyDataStorage ¶
type DummyDataStorage struct {
// contains filtered or unexported fields
}
type Influxdb2DataStorage ¶
type Influxdb2DataStorage struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.