feat(middle-msg): update base parameter

This commit is contained in:
Sodesnei 2021-10-09 21:54:26 +08:00
parent ce8f72040b
commit 81d3bb8434
3 changed files with 7 additions and 3 deletions

5
pkg/middle-msg/define.go Normal file
View File

@ -0,0 +1,5 @@
package middle_msg
const (
MiddleMsgKey = "middleMsgKey"
)

View File

@ -3,9 +3,7 @@ package middle_msg
import "time" import "time"
var ( var (
EventNameLog = "LogContext" EventNameLog = "logcontext"
EventKeyLog = "LogContext"
) )
type LogContext struct { type LogContext struct {

View File

@ -4,4 +4,5 @@ type MiddleToolsInterface interface {
Init() // 初始化 Init() // 初始化
Exec(interface{}) (interface{}, error) // 处理用户发送事件 Exec(interface{}) (interface{}, error) // 处理用户发送事件
Name() string // 获取中间件名称 Name() string // 获取中间件名称
Describe() string // 描述
} }