refactor(db): move package

Signed-off-by: Klagarge <remi@heredero.ch>
This commit is contained in:
2026-06-04 14:46:30 +02:00
parent 979c502e27
commit a11573609e
2 changed files with 8 additions and 9 deletions
@@ -1,5 +1,5 @@
// Package influx_gateway_Lib provides an abstraction to the client influx. // Package influx_gateway_Lib provides an abstraction to the client influx.
package influx_gateway package influx
import ( import (
"context" "context"
@@ -41,13 +41,12 @@ func NewInfluxGateway(url string, token string, database string) (*InfluxGateway
} }
return &InfluxGateway{ return &InfluxGateway{
client: client, client: client,
batcher: batching.NewBatcher( batcher: batching.NewBatcher(
batching.WithSize(BatchSize), batching.WithSize(BatchSize),
batching.WithInitialCapacity(BatchCapacity), batching.WithInitialCapacity(BatchCapacity),
), ),
}, }, nil
nil
} }
// AddDatapoint is used to add a datapoint in the batcher. It uses the // 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 provides an abstraction to an MQTT broker client.
package mqtt_gateway package mqtt
import ( import (
"crypto/tls" "crypto/tls"