Documentation ¶
Index ¶
- Constants
- func CreateHyperTable(db *gorm.DB, tableName string, dataRetentionPeriod time.Duration) error
- func CreateHyperTableAvgValuesView(db *gorm.DB, tableName string, viewName string, timeBucket string, ...) error
- func CreateHyperTableCountView(db *gorm.DB, tableName string, viewName string, timeBucket string, ...) error
- func DropHyperTableView(db *gorm.DB, viewName string) error
- func SetDataRetentionPolicyForHyperTalbe(db *gorm.DB, tableName string, duration time.Duration) error
- func TSObjectHandler[T any](db any) echo.MiddlewareFunc
- type TSDataFormat
- type TSPoint
- type TSPointValue
- type TSQuery
- type TSQueryCommand
- type TSQuerySelect
- type TSResult
- type TSSeries
Constants ¶
View Source
const (
TSDataFormatTimeSerial = "time_serial"
)
Variables ¶
This section is empty.
Functions ¶
func CreateHyperTable ¶
func TSObjectHandler ¶
Types ¶
type TSDataFormat ¶
type TSDataFormat string
type TSPoint ¶
type TSPoint map[string]TSPointValue
type TSPointValue ¶
type TSPointValue any
type TSQuery ¶
type TSQuery struct { Id string `json:"Id"` Source string `json:"Source"` Interval float64 `json:"Interval"` Format TSDataFormat `json:"Format"` Select []TSQuerySelect `json:"Select"` GroupBy []string `json:"GroupBy"` OrderBy []string `json:"OrderBy"` Reverse bool `json:"Reverse"` SearchString string `json:"Search"` Search search.SearchData `json:"-"` Limit int `json:"Limit"` Offset int `json:"Offset"` }
type TSQueryCommand ¶
type TSQuerySelect ¶
Click to show internal directories.
Click to hide internal directories.