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

27 lines
369 B
Go

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(1)
return nil, nil
}
func (i *logMiddle) Name() string {
return "logMiddle"
}
func NewMiddleware() plugins.MiddleToolsInterface {
return &logMiddle{}
}