Documentation
¶
Index ¶
- func Client() (influxdb2.Client, error)
- func New(cfg config.Influxdb) (influxdb2.Client, error)
- func Query(ctx context.Context, query string) (*api.QueryTableResult, error)
- func QueryAPI() (api.QueryAPI, error)
- func WriteAPI() (api.WriteAPIBlocking, error)
- func WritePoint(ctx context.Context, measurement string, tags map[string]string, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
New returns a new InfluxDB client instance with given configuration. It's the caller's responsibility to close the client, caller should always call client.Close() when it's no longer needed.
func WriteAPI ¶
func WriteAPI() (api.WriteAPIBlocking, error)
WriteAPI returns the write API of the initialized InfluxDB client.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.