Documentation
¶
Index ¶
- Constants
- func ChangeTime(v *g.Var) (rs *g.Var)
- func DeviceLogTable(key string) string
- func DeviceTableName(key string) string
- func GetDeviceField(data iotModel.ReportPropertyData) (keys, field []string)
- func GetDeviceFieldAndValue(data iotModel.ReportPropertyData) (field, value []string)
- func GetDeviceValue(field []string, data iotModel.ReportPropertyData) []string
- func ProductTableName(key string) string
- func TsdColumnName(key string) string
- func TsdTagName(key string) string
- type Option
Constants ¶
View Source
const ( DBTdEngine = "TdEngine" DBInfluxdb = "Influxdb" // td 产品表前缀 TdProductPrefix = "product_" // td 设备表前缀 TdDevicePrefix = "device_" // td 日志表前缀 TdLogPrefix = "log_" // td 属性前缀 TdPropertyPrefix = "p_" // td tag前缀 TdTagPrefix = "t_" )
Variables ¶
This section is empty.
Functions ¶
func GetDeviceField ¶
func GetDeviceField(data iotModel.ReportPropertyData) (keys, field []string)
GetDeviceField 获取设备数据key原始顺序列表与重构后的字段
func GetDeviceFieldAndValue ¶
func GetDeviceFieldAndValue(data iotModel.ReportPropertyData) (field, value []string)
GetDeviceFieldAndValue 同时获取设备数据字段与值
func GetDeviceValue ¶
func GetDeviceValue(field []string, data iotModel.ReportPropertyData) []string
GetDeviceValue 获取设备数据值
Types ¶
Click to show internal directories.
Click to hide internal directories.