Documentation ¶
Index ¶
- type ESHelper
- func (the *ESHelper) BulkWrite(index, reqBody string)
- func (the *ESHelper) BulkWriteGroup2Es(index string, themes []common_models.EsGroupTheme)
- func (the *ESHelper) BulkWriteRaws2Es(index string, raws []common_models.EsRaw)
- func (the *ESHelper) Close()
- func (the *ESHelper) Search(index, reqBody string)
- func (the *ESHelper) SearchLatestStationData(index string, sensorId int) (common_models.EsTheme, error)
- func (the *ESHelper) SearchRaw(index, reqBody string) []common_models.HitRaw
- type InfluxDBHelper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ESHelper ¶
type ESHelper struct {
// contains filtered or unexported fields
}
func NewESHelper ¶
func (*ESHelper) BulkWriteGroup2Es ¶ added in v0.0.8
func (the *ESHelper) BulkWriteGroup2Es(index string, themes []common_models.EsGroupTheme)
BulkWriteGroup2Es 分组主题数据写入ES
func (*ESHelper) BulkWriteRaws2Es ¶
func (the *ESHelper) BulkWriteRaws2Es(index string, raws []common_models.EsRaw)
func (*ESHelper) SearchLatestStationData ¶
type InfluxDBHelper ¶
type InfluxDBHelper struct {
// contains filtered or unexported fields
}
func NewInfluxDBHelper ¶
func NewInfluxDBHelper(url, token, org string) *InfluxDBHelper
func (*InfluxDBHelper) Close ¶
func (the *InfluxDBHelper) Close()
func (*InfluxDBHelper) QueryByOfflineGap ¶
func (*InfluxDBHelper) Write ¶
func (the *InfluxDBHelper) Write(lines []string, bucket string)
Click to show internal directories.
Click to hide internal directories.