wheat-cache/plugins/config/middle.template

21 lines
480 B
Plaintext
Raw Normal View History

// Code generated by gen-middleware. DO NOT EDIT.
// make gen-middleware generated
package config
import (
2021-10-04 20:04:28 +08:00
"gitee.com/timedb/wheatCache/plugins"
{%for dir in dirs %}
2021-10-04 20:04:28 +08:00
{{dir[0]}} "gitee.com/timedb/wheatCache/plugins/{{dir[1]}}"
{%- endfor%}
)
2021-09-29 21:21:45 +08:00
func GetMiddlewareMap() map[string]middleware.MiddleToolsInterface {
2021-09-29 21:21:45 +08:00
return map[string]middleware.MiddleToolsInterface{
{%for dir in dirs %}
"{{dir[0]}}":{{dir[0]}}.NewMiddleware(),
{%- endfor%}
}
}