定义缓存和队列接口

This commit is contained in:
linwenxiang
2020-08-05 23:30:05 +08:00
parent 18a2aeadaa
commit b9d30eee88
+4 -4
View File
@@ -17,8 +17,8 @@ type Adapter interface {
GetQueue(name string, f func(message Message) error)
}
type Message struct {
ID string
Stream string
Values map[string]interface{}
type Message interface {
SetID(string)
SetStream(string)
SetValue(map[string]interface{})
}