Documentation ¶ Index ¶ Constants func Close() error func Open() error func Startup() error func Write(metric, id string, values map[string]interface{}, tm int64) error type Device type Point func Query(metric, id string, field string, start, end, window, method string) ([]*Point, error) Constants ¶ View Source const MODULE = "influxdb" Variables ¶ This section is empty. Functions ¶ func Close ¶ func Close() error func Open ¶ func Open() error func Startup ¶ func Startup() error func Write ¶ func Write(metric, id string, values map[string]interface{}, tm int64) error Types ¶ type Device ¶ type Device struct { Id string `json:"id" xorm:"pk"` ProductId string `json:"product_id" xorm:"index"` } type Point ¶ type Point struct { Value any `json:"value"` Time int64 `json:"time"` } func Query ¶ func Query(metric, id string, field string, start, end, window, method string) ([]*Point, error) Source Files ¶ View all Source files api.goboot.goconfig.gomqtt.gotstorage.go Click to show internal directories. Click to hide internal directories.