2021-09-29 18:55:18 +08:00
|
|
|
// 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"
|
2021-09-29 18:55:18 +08:00
|
|
|
{%for dir in dirs %}
|
2021-10-04 20:04:28 +08:00
|
|
|
{{dir[0]}} "gitee.com/timedb/wheatCache/plugins/{{dir[1]}}"
|
2021-09-29 18:55:18 +08:00
|
|
|
{%- endfor%}
|
|
|
|
)
|
|
|
|
|
|
|
|
|
2021-10-04 21:15:23 +08:00
|
|
|
func GetMiddlewareMap() map[string]plugins.MiddleToolsInterface {
|
2021-10-08 20:11:13 +08:00
|
|
|
{%for dir in dirs %}
|
|
|
|
{{dir[0]}}:={{dir[0]}}.NewMiddleware()
|
|
|
|
{%- endfor%}
|
2021-10-04 21:15:23 +08:00
|
|
|
return map[string]plugins.MiddleToolsInterface{
|
2021-09-29 18:55:18 +08:00
|
|
|
{%for dir in dirs %}
|
2021-10-08 20:11:13 +08:00
|
|
|
{{dir[0]}}.Name():{{dir[0]}},
|
2021-09-29 18:55:18 +08:00
|
|
|
{%- endfor%}
|
|
|
|
}
|
|
|
|
}
|