forked from p93542168/wheat-cache
21 lines
484 B
Plaintext
21 lines
484 B
Plaintext
// Code generated by gen-middleware. DO NOT EDIT.
|
|
// make gen-middleware generated
|
|
|
|
package config
|
|
|
|
import (
|
|
"gitee.com/timedb/wheatCache/middleware"
|
|
{%for dir in dirs %}
|
|
{{dir[0]}} "gitee.com/timedb/wheatCache/middleware/{{dir[1]}}"
|
|
{%- endfor%}
|
|
)
|
|
|
|
|
|
func GetMiddlewareMap() map[string]middleware.MiddlewareInterface {
|
|
|
|
return map[string]middleware.MiddlewareInterface{
|
|
{%for dir in dirs %}
|
|
"{{dir[0]}}":{{dir[0]}}.NewMiddleware(),
|
|
{%- endfor%}
|
|
}
|
|
} |