定义缓存和队列接口

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