dbHelper

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: MIT-0 Imports: 14 Imported by: 0

Documentation

Index

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 NewESHelper(addresses []string, user, pwd string) *ESHelper

func (*ESHelper) BulkWrite

func (the *ESHelper) BulkWrite(index, reqBody string)

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) Close added in v0.0.8

func (the *ESHelper) Close()

func (*ESHelper) Search

func (the *ESHelper) Search(index, reqBody string)

func (*ESHelper) SearchLatestStationData

func (the *ESHelper) SearchLatestStationData(index string, sensorId int) (common_models.EsTheme, error)

func (*ESHelper) SearchRaw

func (the *ESHelper) SearchRaw(index, reqBody string) []common_models.HitRaw

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) Query

func (the *InfluxDBHelper) Query() map[string]time.Time

func (*InfluxDBHelper) QueryByOfflineGap

func (the *InfluxDBHelper) QueryByOfflineGap(measurement string, offlineGap string) map[string]time.Time

func (*InfluxDBHelper) Write

func (the *InfluxDBHelper) Write(lines []string, bucket string)

Jump to

Keyboard shortcuts

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