placeholder

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package placeholder is a temporary package for usage during development of the main handler. The idea is to implement placeholder data structures which are use for the inputs and outputs of the various steps of the export process. This is to help aid development of the various steps in parallel, so we can have a rough idea of what we have to use for each step. As each step is completed we should replace the placeholder structure with the real input/output and the placeholder structure should be deleted. The first example is that placeholder.GraphQLQueryResponse will be replaced by the real cantabular.GraphQLQueryResponse from the dp-api-clients-go/cantabular package once it has been implemented. It can also be used for functions which are yet to be implemented in external services, the prime example being cantabular.GraphQLQuery()

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Category

type Category struct {
	Code, Label string
}

type Dataset

type Dataset struct {
	Table Table
}

type Dimension

type Dimension struct {
	Count      int
	Categories []Category
	Variable   Variable
}

type ErrorResponse

type ErrorResponse struct {
	Message string
}

type QueryDatasetRequest

type QueryDatasetRequest struct {
	Dataset   string
	Variables []string
}

type QueryDatasetResponse

type QueryDatasetResponse struct {
	Data struct {
		Dataset Dataset
	}
	Errors []ErrorResponse
}

type Row

type Row struct {
	Categories []Category
	Count      int
}

type Table

type Table struct {
	Dimensions []Dimension
	Values     []int
	Error      string
}

type Variable

type Variable struct {
	Name, Label string
}

Jump to

Keyboard shortcuts

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