Documentation
¶
Index ¶
- Variables
- func GetRootData(jsonString string, rootSelector string, framerType FramerType) (string, error)
- func ToFrame(jsonString string, options FramerOptions) (frame *data.Frame, err error)
- func ToFrames(jsonString string, options FramerOptions) (frames []*data.Frame, err error)
- type ColumnSelector
- type FrameFormat
- type FramerOptions
- type FramerType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidRootSelector = errors.New("failed to compile JSONata expression") ErrEvaluatingJSONata = errors.New("error evaluating JSONata expression") ErrInvalidJSONContent = errors.New("invalid/empty JSON") ErrInvalidJQSelector = errors.New("failed to compile jq selector") ErrUnMarshalingJSON = errors.New("error while un-marshaling json") ErrMarshalingJSON = errors.New("error while marshaling json") ErrExecutingJQ = errors.New("error while executing JQ") )
Functions ¶
func GetRootData ¶
func GetRootData(jsonString string, rootSelector string, framerType FramerType) (string, error)
Types ¶
type ColumnSelector ¶
type FrameFormat ¶
type FrameFormat string
const ( FrameFormatTable FrameFormat = "table" FrameFormatTimeSeries FrameFormat = "timeseries" FrameFormatNumeric FrameFormat = "numeric" )
type FramerOptions ¶
type FramerOptions struct { FramerType FramerType // `gjson` | `jsonata` | `jq` FrameName string RootSelector string Columns []ColumnSelector OverrideColumns []ColumnSelector FrameFormat FrameFormat }
type FramerType ¶
type FramerType string
const ( FramerTypeGJSON FramerType = "gjson" FramerTypeJsonata FramerType = "jsonata" FramerTypeJQ FramerType = "jq" )
Click to show internal directories.
Click to hide internal directories.