Documentation ¶
Index ¶
- func RegisterEndpoint(request REQUEST, pattern string, handler func(echo.Context) error)
- func RegisterPlugin(name string, p Plugin)
- func SetupPlugins(m *echo.Echo, d *sql.DB, names []string)
- type CoreDomain
- type CoreHost
- type CoreNetwork
- type CoreOption
- type DomainHandlerPlugin
- type HostHandlerPlugin
- type NetworkHandlerPlugin
- type Plugin
- type REQUEST
- type UniversalHandlerPlugin
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterEndpoint ¶
RegisterEndpoint points an endpoint to a specific plugin while keeping
func RegisterPlugin ¶
RegisterPlugin registers plugins. Should be called using init function in plugin package
Types ¶
type CoreDomain ¶
type CoreDomain struct {
// contains filtered or unexported fields
}
CoreDomain is the struct used to pass Domain data between plugins and the plugin package
type CoreHost ¶
type CoreHost struct {
// contains filtered or unexported fields
}
CoreHost is the struct used to pass host data between plugins and the plugin package
type CoreNetwork ¶
type CoreNetwork struct {
// contains filtered or unexported fields
}
CoreNetwork is the struct used to pass Network data between plugins and the plugin package
type CoreOption ¶
type CoreOption struct {
// contains filtered or unexported fields
}
CoreOption is the struct used to pass Network data between plugins and the plugin package
type DomainHandlerPlugin ¶
type DomainHandlerPlugin interface { Plugin DomainHandler(CoreDomain, CoreOption) (CoreDomain, CoreOption) }
DomainHandlerPlugin is an interface that extends the Plugin interface, in order to modify Domains
type HostHandlerPlugin ¶
type HostHandlerPlugin interface { Plugin HostHandler(CoreHost, CoreOption) (CoreHost, CoreOption) }
HostHandlerPlugin is an interface that extends the Plugin interface, in order to modify Hosts
type NetworkHandlerPlugin ¶
type NetworkHandlerPlugin interface { Plugin NetworkHandler(CoreNetwork, CoreOption) (CoreNetwork, CoreOption) }
NetworkHandlerPlugin is an interface that extends the Plugin interface, in order to modify Networks
type Plugin ¶
type Plugin interface { Activate() //should register endpoints and add database tables etc Active() bool //should check if plugin has already been activated }
Plugin is an interface defining all plugin exported functions