2021-09-29 18:55:18 +08:00
|
|
|
// Code generated by gen-middleware. DO NOT EDIT.
|
|
|
|
// make gen-middleware generated
|
|
|
|
|
|
|
|
package config
|
|
|
|
|
|
|
|
import (
|
2021-11-02 14:45:08 +08:00
|
|
|
"gitee.com/wheat-os/wheatCache/plugins"
|
2021-09-29 18:55:18 +08:00
|
|
|
{%for dir in dirs %}
|
2021-11-02 14:45:08 +08:00
|
|
|
{{dir[0]}} "gitee.com/wheat-os/wheatCache/plugins/{{dir[1]}}"
|
2021-09-29 18:55:18 +08:00
|
|
|
{%- endfor%}
|
|
|
|
)
|
|
|
|
|
|
|
|
|
2021-10-19 15:33:03 +08:00
|
|
|
func GetMiddlewareMap() map[string]plugins.PluginInterface {
|
2021-10-08 20:11:13 +08:00
|
|
|
{%for dir in dirs %}
|
2021-10-19 15:33:03 +08:00
|
|
|
{{dir[0]}}:={{dir[0]}}.NewPlugin()
|
2021-10-25 15:23:36 +08:00
|
|
|
{{dir[0]}}.Init()
|
|
|
|
{% endfor%}
|
2021-10-19 15:33:03 +08:00
|
|
|
return map[string]plugins.PluginInterface{
|
2021-10-25 15:23:36 +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%}
|
|
|
|
}
|
|
|
|
}
|