influx

package
v0.5.51 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 23, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(address, userName, password, dbName string)

除了需要指定连接的用户名、密码、地址,还需要指定db

func FixInfluxType added in v0.4.3

func FixInfluxType(fields map[string]interface{}, limit float32)

解决influx对float和uint64支持不良的问题 @param limit 误差范围

func Query

func Query(cmd string) ([]map[string]interface{}, error)

func Select added in v0.5.6

func Select(body, table, option string, andQuery []string) (cmd string)

func Write

func Write(measurement string, tags map[string]string, fields map[string]interface{}) (err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL