v1

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package v1 holds framing information for the v1 REST API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataTable

type DataTable struct {
	TableName frames.TableKind
	DataTypes DataTypes `json:"Columns"`
	Rows      []interface{}
	KustoRows []value.Values
	RowErrors []errors.Error
	Op        errors.Op
}

DataTable represents a Kusto REST v1 DataTable that is returned in a DataSet.

func (DataTable) IsFrame

func (DataTable) IsFrame()

IsFrame implements frames.Frame.

type DataType

type DataType struct {
	ColumnName string
	ColumnType string
	DataType   string
}

DataType is the Column representation in V1 series frames.

type DataTypes

type DataTypes []DataType

DataTypes is a V1 version of table.Columns that have to be dealt with and converted.

func (DataTypes) ToColumns

func (dt DataTypes) ToColumns() (table.Columns, error)

ToColumns converts the DataTypes into a table.Columns so our upstream can have one data representation.

type Decoder

type Decoder struct {
	// contains filtered or unexported fields
}

Decoder implements frames.Decoder on the REST v1 frames.

func (*Decoder) Decode

func (d *Decoder) Decode(ctx context.Context, r io.ReadCloser, op errors.Op) chan frames.Frame

Decode implements frames.Decoder.Decode(). This is not thread safe.

Jump to

Keyboard shortcuts

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