diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2018-04-18 16:28:37 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2018-04-18 16:28:37 -0400 |
commit | 3b6279ddf21ca58b8cf9469c04a249d69ea449cb (patch) | |
tree | dbbe3febfc4d4aa889fee787d4d934b9f4720d07 /influxdb.go | |
parent | 45717808e4c8861e022e838aacb8215c81dcd327 (diff) |
add comments, fiddle with function publicity
Diffstat (limited to 'influxdb.go')
-rw-r--r-- | influxdb.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/influxdb.go b/influxdb.go index 992bef3..7dd42bb 100644 --- a/influxdb.go +++ b/influxdb.go @@ -6,8 +6,10 @@ import ( client "github.com/influxdata/influxdb/client/v2" ) +// Point is a datapoint to be logged in to InfluxDB. type Point = *client.Point +// NewPoint is a convenience function to create a new Point. func NewPoint(name string, tags map[string]string, fields map[string]interface{}) Point { pt, err := client.NewPoint(name, tags, fields, time.Now()) if err != nil { |