package handler import "time" type MessageT struct { Timestamp time.Time Topic string Payload string } type Handler interface { GetId() string Handle(MessageT) }