chore(middleware): update middle

This commit is contained in:
bandl 2021-09-29 21:18:00 +08:00
parent 04cb2a1ed1
commit ae5a0531d8
2 changed files with 10 additions and 9 deletions

View File

@ -13,6 +13,7 @@ build:
.PHONY: install
install:
@make gen-middleware
@make build
.PHONY: dev
@ -27,5 +28,6 @@ gen-struct:
gen-protobuf:
@python3 ./shell/gen_protobuf.py
.PHONY: gen-middleware
gen-middleware:
@python3 ./shell/gen_middleware.py

View File

@ -10,12 +10,11 @@ import (
mapKey "gitee.com/timedb/wheatCache/middleware/map-key"
)
func GetMiddlewareMap() map[string]middleware.MiddlewareInterface {
return map[string]middleware.MiddlewareInterface{
"logMiddle":logMiddle.NewMiddleware(),
"mapKey":mapKey.NewMiddleware(),
"logMiddle": logMiddle.NewMiddleware(),
"mapKey": mapKey.NewMiddleware(),
}
}