Files
universal-data-ingest/src/udi/handlers/iot/iot.go
Wolfgang Hottgenroth 8e6bea3f19
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/tag/woodpecker Pipeline was successful
dt1t and counter and refactoring using embedded interfaces
2023-12-21 13:05:00 +01:00

24 lines
404 B
Go

package iot
import "log"
import "udi/config"
import "udi/handlers/handler"
type IoTHandler struct {
handler.CommonHandler
}
func New(id string, config config.HandlerConfigT) handler.Handler {
t := &IoTHandler {
}
t.Id = id
return t
}
func (self *IoTHandler) Handle(message handler.MessageT) {
log.Printf("Handler IoT %d processing %s -> %s", self.Id, message.Topic, message.Payload)
}