models

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UNSUPPORTED_TYPE = "[Unsupported type]"

Functions

This section is empty.

Types

type Column

type Column struct {
	Name      string
	Field     *data.Field
	BsonTypes []bsontype.Type
}

func NewColumn

func NewColumn(rowIndex int, element bson.RawElement) (*Column, error)

func (*Column) AppendValue

func (c *Column) AppendValue(rv bson.RawValue) error

func (*Column) Rectify

func (c *Column) Rectify()

Convert array and embedded document type values to json.RawMessage if allowed

func (*Column) Size

func (c *Column) Size() int

func (*Column) Type

func (c *Column) Type() data.FieldType

type PluginSettings

type PluginSettings struct {
	Host                   string                `json:"host"`
	Port                   int                   `json:"port"`
	Database               string                `json:"database"`
	AuthMethod             string                `json:"authType"`
	Username               string                `json:"username"`
	ConnectionStringScheme string                `json:"connectionStringScheme"`
	ConnectionParameters   string                `json:"connectionParameters"`
	Secrets                *SecretPluginSettings `json:"-"`
}

func LoadPluginSettings

func LoadPluginSettings(source backend.DataSourceInstanceSettings) (*PluginSettings, error)

type SecretPluginSettings

type SecretPluginSettings struct {
	Password string `json:"password"`
}

type TimeSeriesTable

type TimeSeriesTable struct {
	Name                string
	Timestamps          []*time.Time
	RawValues           []bson.RawValue
	IntrinsictValueType reflect.Kind
}

func NewTimeSeriesTable

func NewTimeSeriesTable(name string) *TimeSeriesTable

func (*TimeSeriesTable) AppendRow

func (t *TimeSeriesTable) AppendRow(elements []bson.RawElement) error

func (*TimeSeriesTable) MakeDataFrame

func (t *TimeSeriesTable) MakeDataFrame() *data.Frame

Jump to

Keyboard shortcuts

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