package log_middle import ( "fmt" "gitee.com/timedb/wheatCache/plugins" ) type logMiddle struct { } func (i *logMiddle) Init() { } func (i *logMiddle) Exec(interface{}) (interface{}, error) { fmt.Println("logMiddle") return "", nil } func (i *logMiddle) Name() string { return "logMiddle" } func (i *logMiddle) Describe() string { return "" } func NewMiddleware() plugins.MiddleToolsInterface { return &logMiddle{} }