Documentation ¶
Index ¶
- Variables
- func Ping(cfg *config.InfluxCfg) (client.Client, time.Duration, string, error)
- func SetLogger(l *logrus.Logger)
- type InfluxDB
- func (db *InfluxDB) BP() (*client.BatchPoints, error)
- func (db *InfluxDB) CheckAndSetInitialized() bool
- func (db *InfluxDB) CheckAndSetStarted() bool
- func (db *InfluxDB) CheckAndUnSetInitialized() bool
- func (db *InfluxDB) CheckAndUnSetStarted() bool
- func (db *InfluxDB) Connect() error
- func (db *InfluxDB) End()
- func (db *InfluxDB) Hostname() string
- func (db *InfluxDB) Init()
- func (db *InfluxDB) IsStarted() bool
- func (db *InfluxDB) Send(bps *client.BatchPoints)
- func (db *InfluxDB) SetStartedAs(st bool)
- func (db *InfluxDB) StartSender(wg *sync.WaitGroup)
- func (db *InfluxDB) StopSender()
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type InfluxDB ¶
InfluxDB database export
func NewNotInitInfluxDB ¶
NewNotInitInfluxDB Create Object in memory but not initialized until ready connection needed
func (*InfluxDB) CheckAndSetInitialized ¶
CheckAndSetInitialized check if this thread is already working and set if not
func (*InfluxDB) CheckAndSetStarted ¶
CheckAndSetStarted check if this thread is already working and set if not
func (*InfluxDB) CheckAndUnSetInitialized ¶
CheckAndUnSetInitialized check if this thread is already working and set if not
func (*InfluxDB) CheckAndUnSetStarted ¶
CheckAndUnSetStarted check if this thread is already working and unset if not
func (*InfluxDB) SetStartedAs ¶
SetStartedAs change started state
func (*InfluxDB) StartSender ¶
StartSender begins sender loop
Click to show internal directories.
Click to hide internal directories.