forked from p93542168/wheat-cache
fix(middle_driver): delete middleware
This commit is contained in:
parent
a606fbb08a
commit
1963843125
|
@ -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,
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -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{}
|
|
||||||
}
|
|
Loading…
Reference in New Issue