Documentation
¶
Index ¶
Constants ¶
View Source
const ( BATCH_SIZE = 3 FLUSH_INTERVAL = 10000 RETRY_INTERVAL = 5000 MAX_RETRIES = 3 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type InfluxDBClient ¶
type InfluxDBClient struct {
// contains filtered or unexported fields
}
func NewInfluxDBClient ¶
func NewInfluxDBClient(url, token, org, bucket string) *InfluxDBClient
func (*InfluxDBClient) Connect ¶
func (c *InfluxDBClient) Connect() error
func (*InfluxDBClient) Connected ¶
func (c *InfluxDBClient) Connected() bool
Connected checks if the client is connected
func (*InfluxDBClient) Disconnect ¶
func (c *InfluxDBClient) Disconnect()
Disconnect closes the connection to InfluxDB
func (*InfluxDBClient) WriteData ¶
func (h *InfluxDBClient) WriteData(data Message) error
WriteData writes data to InfluxDB
type InfluxDBConfig ¶
Click to show internal directories.
Click to hide internal directories.