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

27 lines
369 B
Go
Raw Normal View History

2021-09-27 09:52:27 +08:00
package log_middle
import (
"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-09-27 09:52:27 +08:00
fmt.Println(1)
return nil, nil
}
func (i *logMiddle) Name() string {
return "logMiddle"
}
2021-10-04 20:54:08 +08:00
func NewMiddleware() plugins.MiddleToolsInterface {
return &logMiddle{}
2021-09-27 09:52:27 +08:00
}