refactor(db): move package

Signed-off-by: Klagarge <remi@heredero.ch>
This commit is contained in:
Klagarge committed 2026-06-04 14:46:30 +02:00
1 parent 979c502e27
commit a11573609e
2 files changed
+8 -9

No files matched your search

@@ -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"