1
0

refactor(db): move package

Signed-off-by: Klagarge <remi@heredero.ch>
This commit is contained in:
2026-04-30 17:42:27 +02:00
parent 979c502e27
commit a11573609e
2 changed files with 8 additions and 9 deletions

View File

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

View File

@@ -1,5 +1,5 @@
// Package mqtt_gateway provides an abstraction to an MQTT broker client.
package mqtt_gateway
package mqtt
import (
"crypto/tls"