Documentation
¶
Index ¶
Constants ¶
View Source
const ( // ErrInvalidTLSDirectory is returned when a tls directory is unset when the tls port has been set ErrInvalidTLSDirectory = errors.Error("invalid tls directory, cannot be empty when tls port has been set") // ErrInvalidPreInitFunc is returned when an unsupported pre initialization function is encountered ErrInvalidPreInitFunc = errors.Error("unsupported header for Init func encountered") // ErrInvalidLoadFunc is returned when an unsupported initialization function is encountered ErrInvalidLoadFunc = errors.Error("unsupported header for Load func encountered") // ErrNotAddressable is returned when a plugin is not addressable ErrNotAddressable = errors.Error("provided backend must be addressable") // ErrInvalidDir is returned when a directory is empty ErrInvalidDir = errors.Error("invalid directory, cannot be empty") // ErrPluginKeyExists is returned when a plugin cannot be added because it already exists ErrPluginKeyExists = errors.Error("plugin cannot be added, key already exists") // ErrPluginNotLoaded is returned when a plugin namespace is provided that has not been loaded ErrPluginNotLoaded = errors.Error("plugin with that key has not been loaded") // ErrExpectedEndParen is returned when an ending parenthesis is missing ErrExpectedEndParen = errors.Error("expected ending parenthesis") )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BasePlugin ¶ added in v0.11.0
type BasePlugin struct{}
func (*BasePlugin) Backend ¶ added in v0.11.0
func (b *BasePlugin) Backend() interface{}
func (*BasePlugin) Close ¶ added in v0.11.0
func (b *BasePlugin) Close() error
type Plugins ¶ added in v0.11.0
type Plugins struct {
// contains filtered or unexported fields
}
Plugins manages loaded plugins
func (*Plugins) Register ¶ added in v0.11.0
New will load a new plugin by plugin key The following formats are accepted as keys:
- path/to/file/plugin.so
- github.com/username/repository/pluginDir
type Vroomy ¶ added in v0.9.0
type Vroomy struct {
// contains filtered or unexported fields
}
Vroomy manages the web service
func NewWithConfig ¶ added in v0.9.0
NewWithConfig will return a new instance of service with a provided config
Click to show internal directories.
Click to hide internal directories.
Vroomy is a plugin-based server. Vroomy can be used for anything, from a static file server to a full-blown back-end service!