alps/plugin.go
2019-12-11 15:08:31 +01:00

17 lines
280 B
Go

package koushin
import (
"html/template"
"github.com/labstack/echo/v4"
)
const pluginDir = "plugins"
type Plugin interface {
Name() string
LoadTemplate(t *template.Template) error
SetRoutes(group *echo.Group)
Inject(name string, data interface{}) error
Close() error
}