boilerplate code

This commit is contained in:
2025-10-09 05:20:06 +02:00
parent a7c436fe4c
commit b51f00e499
17 changed files with 500 additions and 17 deletions
+19
View File
@@ -0,0 +1,19 @@
package iot
import (
"nats-app/internal/broker"
)
type IoTDevice struct {
NATS *broker.NATS
}
func Start(environment, url string) *IoTDevice {
startRotativeLogger(environment)
nats := broker.NewNATS(url)
return &IoTDevice{
NATS: nats,
}
}