forked from p93542168/wheat-cache
27 lines
369 B
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{}
|
|
}
|