Documentation
¶
Index ¶
- Constants
- func MarshalTimeseries(ts timeseries.Timeseries, rlo *timeseries.RequestOptions, status int) ([]byte, error)
- func MarshalTimeseriesWriter(ts timeseries.Timeseries, rlo *timeseries.RequestOptions, status int, ...) error
- func NewModeler() *timeseries.Modeler
- func UnmarshalTimeseries(data []byte, trq *timeseries.TimeRangeQuery) (timeseries.Timeseries, error)
- func UnmarshalTimeseriesReader(reader io.Reader, trq *timeseries.TimeRangeQuery) (timeseries.Timeseries, error)
- type DataType
- type WFData
- type WFDataItem
- type WFDataItemElement
- type WFDocument
- type WFMeta
- type WFMetaItem
Constants ¶
const ( UInt8 = DataType(iota) UInt16 UInt32 UInt64 UInt256 Int8 Int16 Int32 Int64 Int128 Int256 Float32 Float64 Decimal Boolean String FixedString UUID Date DateTime DateTime64 Enum LowCardinality Array AggregateFunction Tuple Nullable )
Variables ¶
This section is empty.
Functions ¶
func MarshalTimeseries ¶
func MarshalTimeseries(ts timeseries.Timeseries, rlo *timeseries.RequestOptions, status int) ([]byte, error)
MarshalTimeseries converts a Timeseries into a JSON blob
func MarshalTimeseriesWriter ¶
func MarshalTimeseriesWriter(ts timeseries.Timeseries, rlo *timeseries.RequestOptions, status int, w io.Writer, ) error
MarshalTimeseriesWriter converts a Timeseries into a JSON blob via an io.Writer
func NewModeler ¶
func NewModeler() *timeseries.Modeler
NewModeler returns a collection of modeling functions for clickhouse interoperability
func UnmarshalTimeseries ¶
func UnmarshalTimeseries(data []byte, trq *timeseries.TimeRangeQuery) (timeseries.Timeseries, error)
UnmarshalTimeseries converts a TSV blob into a Timeseries
func UnmarshalTimeseriesReader ¶
func UnmarshalTimeseriesReader(reader io.Reader, trq *timeseries.TimeRangeQuery) (timeseries.Timeseries, error)
UnmarshalTimeseriesReader converts a TSV blob into a Timeseries via io.Reader
Types ¶
type WFDataItem ¶
type WFDataItem []WFDataItemElement
WFDataItem is a slice of WFDataItemElements (aka a Row) in the WF Document
func (WFDataItem) MarshalJSON ¶
func (d WFDataItem) MarshalJSON() ([]byte, error)
type WFDataItemElement ¶
WFDataItemElement represents a data point and its value in the response.
type WFDocument ¶
type WFDocument struct {
Meta WFMeta `json:"meta"`
Data WFData `json:"data"`
Rows *int `json:"rows"`
}
WFDocument is represents the Wire Format structure for ClickHouse
type WFMeta ¶
type WFMeta []WFMetaItem
WFMeta is a slice of Metadata items in the Wire Format Document
type WFMetaItem ¶
WFMetaItem is a metadata attribute in the Wire Format Document