This commit is contained in:
2023-12-01 09:26:17 +01:00
parent 6faac5aeba
commit afbc3d3454
8 changed files with 80 additions and 29 deletions

View File

@ -1,6 +1,14 @@
package handler
type Handler interface {
Handle(string, string)
import "time"
type MessageT struct {
Timestamp time.Time
Topic string
Payload string
}
type Handler interface {
Handle(MessageT)
}