fix(middle_driver): delete middleware

This commit is contained in:
Sodesnei 2021-10-04 21:42:34 +08:00
parent a606fbb08a
commit 1963843125
2 changed files with 0 additions and 36 deletions

View File

@ -1,14 +0,0 @@
package config
import (
"gitee.com/timedb/wheatCache/middleware"
logMiddle "gitee.com/timedb/wheatCache/middleware/logmiddle"
)
func GetMiddlewareMap() map[string]middleware.MiddlewareInterface {
logMiddle := logMiddle.NewLogMiddle()
return map[string]middleware.MiddlewareInterface{
"logMiddle": logMiddle,
}
}

View File

@ -1,22 +0,0 @@
package log_middle
import (
"fmt"
"gitee.com/timedb/wheatCache/middleware"
)
type logmiddle struct {
}
func (l *logmiddle) Init() {
fmt.Println("1")
}
func (l *logmiddle) Exet(interface{}) (interface{}, error) {
return nil, nil
}
func NewLogMiddle() middleware.MiddlewareInterface {
return &logmiddle{}
}