定义缓存和队列接口
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)
|
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{})
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user