Documentation
¶
Index ¶
- func WorkerGenerator(jobs chan collector.Printable, connection, index, dumpFile string, ...) func(workerId int) *Worker
- type Connector
- func (connector *Connector) AddWorker()
- func (connector Connector) AmountWorkers() int
- func (connector *Connector) CreateDatabase() bool
- func (connector Connector) DatabaseExists() bool
- func (connector Connector) IsAlive() bool
- func (connector *Connector) RemoveWorker()
- func (connector *Connector) Stop()
- func (connector *Connector) TestDatabaseExists() bool
- func (connector *Connector) TestIfIsAlive() bool
- type Worker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Connector ¶
type Connector struct {
// contains filtered or unexported fields
}
Connector makes the basic connection to an influxdb.
func ConnectorFactory ¶
func ConnectorFactory(jobs chan collector.Printable, connectionHost, index, dumpFile string, workerAmount, maxWorkers int, version float32, createDatabaseIfNotExists bool) *Connector
ConnectorFactory Constructor which will create some workers if the connection is established.
func (*Connector) AddWorker ¶
func (connector *Connector) AddWorker()
AddWorker creates a new worker
func (Connector) AmountWorkers ¶
AmountWorkers current amount of workers.
func (*Connector) CreateDatabase ¶
CreateDatabase creates the database.
func (Connector) DatabaseExists ¶
DatabaseExists does the database exist.
func (*Connector) RemoveWorker ¶
func (connector *Connector) RemoveWorker()
RemoveWorker stops a worker
func (*Connector) TestDatabaseExists ¶
TestDatabaseExists test active if the database exists.
func (*Connector) TestIfIsAlive ¶
TestIfIsAlive test active if the database system is alive.
Click to show internal directories.
Click to hide internal directories.