querymodel

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: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LabelOption added in v0.0.3

type LabelOption struct {
	Name        string                  `json:"name"`
	Type        LabelOptionType         `json:"type"`
	Value       string                  `json:"value"`
	FieldConfig *LabelOptionFieldConfig `json:"fieldConfig"`
}

type LabelOptionFieldConfig added in v0.0.6

type LabelOptionFieldConfig struct {
	Required     bool    `json:"required"`
	DefaultValue *string `json:"defaultValue"`
}

type LabelOptionType added in v0.0.3

type LabelOptionType string
const (
	CONSTANT LabelOptionType = "constant"
	FIELD    LabelOptionType = "field"
)

type ParsingOption

type ParsingOption struct {
	// The path from the root to the array. This is dot-delimited
	DataPath string `json:"dataPath"`
	// the time path relative to the data path.
	TimeFields   []TimeField   `json:"timeFields"`
	LabelOptions []LabelOption `json:"labelOptions"`
}

func (*ParsingOption) GetTimeField added in v0.0.6

func (parsingOption *ParsingOption) GetTimeField(key string) *TimeField

type QueryModel

type QueryModel struct {
	QueryText string `json:"queryText"`
	// The name of the operation, or a blank string to let the GraphQL server infer the operation name
	OperationName string `json:"operationName"`
	// The variables for the operation. May either be a string or a map[string]interface{} or nil
	Variables      interface{}     `json:"variables"`
	ParsingOptions []ParsingOption `json:"parsingOptions"`
}

QueryModel represents data sent from the frontend to perform a query

type TimeField added in v0.0.6

type TimeField struct {
	TimePath string `json:"timePath"`
}

Jump to

Keyboard shortcuts

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