framemap

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FrameMap

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

func New added in v0.0.5

func New() *FrameMap

func (*FrameMap) NewRow added in v0.0.6

func (f *FrameMap) NewRow(labels data.Labels) *Row

func (*FrameMap) ToFrames

func (f *FrameMap) ToFrames() ([]*data.Frame, error)

ToFrames transforms the FrameMap to an array of frames Any error that is returned is not caused by the user, and is an unexpected error.

type Row added in v0.0.6

type Row struct {
	FieldOrder []string
	// The field map. Supported types are as follows:
	//
	//  jsonnode.Number, jsonnode.Null
	//
	//  string, bool, float64, time.Time
	//
	// Please make sure you do not use pointer types.
	FieldMap map[string]any
}

Jump to

Keyboard shortcuts

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