wheat-cache/plugins/log-middle/middleware.go

30 lines
430 B
Go
Raw Normal View History

package logmiddle
2021-09-27 09:52:27 +08:00
import (
2021-10-10 14:10:21 +08:00
"fmt"
2021-10-04 20:54:08 +08:00
"gitee.com/timedb/wheatCache/plugins"
2021-09-27 09:52:27 +08:00
)
type logMiddle struct {
2021-09-27 09:52:27 +08:00
}
func (i *logMiddle) Init() {
2021-09-27 09:52:27 +08:00
}
func (i *logMiddle) Exec(interface{}) (interface{}, error) {
2021-10-10 14:10:21 +08:00
fmt.Println("logMiddle")
2021-10-09 21:55:39 +08:00
return "", nil
2021-09-27 09:52:27 +08:00
}
func (i *logMiddle) Name() string {
return "logMiddle"
}
2021-10-09 21:55:39 +08:00
func (i *logMiddle) Describe() string {
return ""
}
2021-10-04 20:54:08 +08:00
func NewMiddleware() plugins.MiddleToolsInterface {
return &logMiddle{}
2021-09-27 09:52:27 +08:00
}