@@ -1,5 +1,5 @@
|
||||
// Package influx_gateway_Lib provides an abstraction to the client influx.
|
||||
package influx_gateway
|
||||
package influx
|
||||
|
||||
import (
|
||||
"context"
|
||||
@@ -41,13 +41,12 @@ func NewInfluxGateway(url string, token string, database string) (*InfluxGateway
|
||||
}
|
||||
|
||||
return &InfluxGateway{
|
||||
client: client,
|
||||
batcher: batching.NewBatcher(
|
||||
batching.WithSize(BatchSize),
|
||||
batching.WithInitialCapacity(BatchCapacity),
|
||||
),
|
||||
},
|
||||
nil
|
||||
client: client,
|
||||
batcher: batching.NewBatcher(
|
||||
batching.WithSize(BatchSize),
|
||||
batching.WithInitialCapacity(BatchCapacity),
|
||||
),
|
||||
}, nil
|
||||
}
|
||||
|
||||
// AddDatapoint is used to add a datapoint in the batcher. It uses the
|
||||
@@ -1,5 +1,5 @@
|
||||
// Package mqtt_gateway provides an abstraction to an MQTT broker client.
|
||||
package mqtt_gateway
|
||||
package mqtt
|
||||
|
||||
import (
|
||||
"crypto/tls"
|
||||
Reference in New Issue
Block a user