database
This commit is contained in:
@ -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)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user