v1

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2021 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
	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 added in v0.2.0

type DataType struct {
	ColumnName string
	ColumnType string
	DataType   string
}

DataType is the Column representation in V1 series frames.

type DataTypes added in v0.2.0

type DataTypes []DataType

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

func (DataTypes) ToColumns added in v0.2.0

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