Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ApiVersion ¶
type ApiVersion string
const ( ApiVersion1 ApiVersion = "v1" ApiVersion1Beta ApiVersion = "v1beta" )
type ComplexData ¶
func (ComplexData) Model ¶
func (c ComplexData) Model() *Model
func (ComplexData) Values ¶
func (c ComplexData) Values() [][]any
type DataSet ¶
type DataSet struct { Name string DataModel *Model Metadata map[string]any Data [][]any Links map[string]Link }
DataSet holds the result data along with its name, structure (Model) and metadata
type DataSetRef ¶
DataSetRef is a reference to another data set within the Response
type Hint ¶
type Hint struct { Kind string `json:"kind"` Field string `json:"field"` Type string `json:"type"` }
Hint provides additional information about a ModelField such as the MELT kind, MELT field and type
type Model ¶
type Model struct { Name string `json:"name"` Fields []ModelField `json:"fields"` }
Model represents the structure of the response data
type ModelField ¶
type ModelField struct { Alias string `json:"alias"` Type string `json:"type"` Form string `json:"form"` Hints *Hint `json:"hints"` Model *Model `json:"model"` }
ModelField is a description of one column of one data set
func (*ModelField) IsReference ¶
func (mf *ModelField) IsReference() bool
type Response ¶
type Response struct {
// contains filtered or unexported fields
}
Response represents a parsed UQL response body
func ContinueQuery ¶
ContinueQuery sends a continue request to the UQL service
func ExecuteQuery ¶
func ExecuteQuery(query *Query, apiVersion ApiVersion) (*Response, error)
ExecuteQuery sends an execute request to the UQL service
Click to show internal directories.
Click to hide internal directories.