Documentation ¶
Index ¶
- Constants
- type Config
- type Plugin
- func (p *Plugin) Available()
- func (p *Plugin) Collects() []interface{}
- func (p *Plugin) GetAllStorageDrivers(name endure.Named, constructor kv.Constructor)
- func (p *Plugin) Init(cfg config.Configurer, log logger.Logger) error
- func (p *Plugin) Name() string
- func (p *Plugin) RPC() interface{}
- func (p *Plugin) Serve() chan error
- func (p *Plugin) Stop() error
Constants ¶
View Source
const PluginName string = "kv"
PluginName linked to the memory, boltdb, memcached, redis plugins. DO NOT change w/o sync.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶ added in v2.1.0
type Config struct {
Data map[string]interface{} `mapstructure:"kv"`
}
Config represents general storage configuration with keys as the user defined kv-names and values as the constructors
type Plugin ¶ added in v2.1.0
type Plugin struct {
// contains filtered or unexported fields
}
Plugin for the unified storage
func (*Plugin) Available ¶ added in v2.2.0
func (p *Plugin) Available()
Available interface implementation
func (*Plugin) Collects ¶ added in v2.1.0
func (p *Plugin) Collects() []interface{}
Collects will get all plugins which implement Storage interface
func (*Plugin) GetAllStorageDrivers ¶ added in v2.1.0
func (p *Plugin) GetAllStorageDrivers(name endure.Named, constructor kv.Constructor)
Click to show internal directories.
Click to hide internal directories.