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

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