定义缓存和队列接口
This commit is contained in:
1 parent
18a2aeadaa
commit
b9d30eee88
1 file changed
+4
-4
Vendored
+4
-4
@@ -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{})
|
||||
}
|
||||
Reference in new issue
Block a user