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

23 lines
278 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 A struct {
}
func (i *A) Init() {
}
2021-09-29 21:21:45 +08:00
func (i *A) Exec(interface{}) (interface{}, error) {
2021-09-27 09:52:27 +08:00
fmt.Println(1)
return nil, nil
}
2021-10-04 20:54:08 +08:00
func NewMiddleware() plugins.MiddleToolsInterface {
2021-09-27 09:52:27 +08:00
return &A{}
}