mirror of
https://github.com/go-admin-team/go-admin.git
synced 2026-09-20 17:57:54 +00:00
定义缓存和队列接口
This commit is contained in:
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