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

23 lines
283 B
Go

package log_middle
import (
"fmt"
"gitee.com/timedb/wheatCache/middleware"
)
type A struct {
}
func (i *A) Init() {
}
func (i *A) Exat(interface{}) (interface{}, error) {
fmt.Println(1)
return nil, nil
}
func NewMiddleware() middleware.MiddlewareInterface {
return &A{}
}