alps/plugin.go

18 lines
280 B
Go
Raw Normal View History

2019-12-09 15:02:12 +00:00
package koushin
import (
2019-12-09 16:54:24 +00:00
"html/template"
2019-12-09 15:02:12 +00:00
"github.com/labstack/echo/v4"
)
const pluginDir = "plugins"
2019-12-09 15:02:12 +00:00
type Plugin interface {
Name() string
LoadTemplate(t *template.Template) error
SetRoutes(group *echo.Group)
Inject(name string, data interface{}) error
2019-12-09 15:02:12 +00:00
Close() error
}