wheat-cache/plugins/config/middle.template

23 lines
555 B
Plaintext

// Code generated by gen-middleware. DO NOT EDIT.
// make gen-middleware generated
package config
import (
"gitee.com/timedb/wheatCache/plugins"
{%for dir in dirs %}
{{dir[0]}} "gitee.com/timedb/wheatCache/plugins/{{dir[1]}}"
{%- endfor%}
)
func GetMiddlewareMap() map[string]plugins.MiddleToolsInterface {
{%for dir in dirs %}
{{dir[0]}}:={{dir[0]}}.NewMiddleware()
{%- endfor%}
return map[string]plugins.MiddleToolsInterface{
{%for dir in dirs %}
{{dir[0]}}.Name():{{dir[0]}},
{%- endfor%}
}
}