gql

package
v2.164.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2022 License: MIT Imports: 2 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Categories

type Categories struct {
	TotalCount int    `json:"totalCount"`
	Edges      []Edge `json:"edges"`
	Search     Search `json:"search,omitempty"`
}

type Dataset added in v2.148.0

type Dataset struct {
	RuleBase  RuleBase  `json:"ruleBase"`
	Variables Variables `json:"variables"`
}

type Edge

type Edge struct {
	Node Node `json:"node"`
}

type Error

type Error struct {
	Message   string     `json:"message"`
	Locations []Location `json:"locations"`
	Path      []string   `json:"path"`
}

func (*Error) StatusCode added in v2.9.1

func (e *Error) StatusCode() int

StatusCode returns the status code defined at the begining of the Error message. For example: a status 404 is extracted from '404 Not Found: dataset not loaded in this server'. If no status code is provided, then a value of 502 bad gateway is returned.

type Location

type Location struct {
	Line   int `json:"line"`
	Column int `json:"column"`
}

type Node

type Node struct {
	Name             string      `json:"name"`
	Code             string      `json:"code"`
	Label            string      `json:"label"`
	Categories       Categories  `json:"categories"`
	MapFrom          []Variables `json:"mapFrom"`
	Variable         Variable    `json:"variable"`
	IsDirectSourceOf Variables   `json:"isDirectSourceOf"`
	IsSourceOf       Variables   `json:"isSourceOf"`
}

type RuleBase

type RuleBase struct {
	IsSourceOf Variables `json:"isSourceOf"`
	Name       string    `json:"name"`
}
type Search struct {
	Edges []Edge `json:"edges"`
}

type Variable added in v2.96.11

type Variable struct {
	Name string `json:"name"`
}

type Variables

type Variables struct {
	Edges          []Edge `json:"edges"`
	Search         Search `json:"search,omitempty"`
	CategorySearch Search `json:"categorySearch,omitempty"`
	TotalCount     int    `json:"totalCount"`
}

Jump to

Keyboard shortcuts

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