Discover Packages
github.com/ONSdigital/dp-api-clients-go/v2
cantabular
gql
package
Version:
v2.112.0
Opens a new window with list of versions in this module.
Published: Mar 30, 2022
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 6
Opens a new window with list of known importers.
Documentation Source Files Index Constants Variables Functions Types type Categories type DatasetRuleBase type DatasetVariables type Edge type Error type Location type Node type RuleBase type Search type Variable type Variables (e) StatusCode()
Documentation
¶
type Categories struct {
TotalCount int `json:"totalCount"`
Edges []Edge `json:"edges"`
}
type DatasetRuleBase struct {
RuleBase RuleBase `json:"ruleBase"`
}
type DatasetVariables struct {
Variables Variables `json:"variables"`
}
type Edge struct {
Node Node `json:"node"`
}
type Error struct {
Message string `json:"message"`
Locations []Location `json:"locations"`
Path []string `json:"path"`
}
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 struct {
Line int `json:"line"`
Column int `json:"column"`
}
type Node struct {
Name string `json:"name"`
Code string `json:"code"`
Label string `json:"label"`
Categories Categories `json:"categories"`
MapFrom []Variables `json:"mapFrom"`
FilterOnly string `json:"filterOnly,omitempty"`
Variable Variable `json:"variable"`
}
type RuleBase struct {
IsSourceOf Variables `json:"isSourceOf"`
Name string `json:"name"`
}
type Search struct {
Edges []Edge `json:"edges"`
}
type Variable struct {
Name string `json:"name"`
}
type Variables struct {
Edges []Edge `json:"edges"`
Search Search `json:"search,omitempty"`
CategorySearch Search `json:"categorySearch,omitempty"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.