wheat-cache/plugins/config/middle.template

23 lines
555 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-10-04 21:15:23 +08:00
func GetMiddlewareMap() map[string]plugins.MiddleToolsInterface {
{%for dir in dirs %}
{{dir[0]}}:={{dir[0]}}.NewMiddleware()
{%- endfor%}
2021-10-04 21:15:23 +08:00
return map[string]plugins.MiddleToolsInterface{
{%for dir in dirs %}
{{dir[0]}}.Name():{{dir[0]}},
{%- endfor%}
}
}