Documentation ¶
Index ¶
- type Connection
- type PluginStatistic
- type Pool
- func (p *Pool) AddPluginToHost(pluginName, host string, secrets *secrets.Storage) error
- func (p *Pool) PluginStatisticPerHost() map[string][]PluginStatistic
- func (p *Pool) RegisterHost(host string, connections map[string]*Connection)
- func (p *Pool) RemoveHostAndPlugins(host string)
- func (p *Pool) StopAndRemovePluginFromHost(pluginName, host string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Connection ¶
type Connection struct { Host string `yaml:"host"` DBName string `yaml:"dbname"` Port int `yaml:"port"` UserName string `yaml:"username"` Password string `yaml:"password"` Params map[string]string `yaml:"params"` }
Connection to PostgreSQL
type PluginStatistic ¶
type PluginStatistic struct { Host string PluginName string PluginFileName string Starts int Errors int LastCheck int64 LastError string }
PluginStatistic represent statistics for plugin
type Pool ¶
type Pool struct {
// contains filtered or unexported fields
}
Pool of plugins
func (*Pool) AddPluginToHost ¶
AddPluginToHost add plugin to host
func (*Pool) PluginStatisticPerHost ¶
func (p *Pool) PluginStatisticPerHost() map[string][]PluginStatistic
PluginStatisticPerHost statistic information about all host
func (*Pool) RegisterHost ¶
func (p *Pool) RegisterHost(host string, connections map[string]*Connection)
RegisterHost register new host
func (*Pool) RemoveHostAndPlugins ¶
RemoveHostAndPlugins stop all plugins and remove host
func (*Pool) StopAndRemovePluginFromHost ¶
StopAndRemovePluginFromHost stop plugin on host
Click to show internal directories.
Click to hide internal directories.