contract

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2022 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 AreaType added in v1.2.0

type AreaType struct {
	ID         string `json:"id"`
	Label      string `json:"label"`
	TotalCount int    `json:"total_count"`
}

AreaType is an area-type model with ID and Label

type Areas added in v1.2.0

type Areas struct {
	ID       string `json:"id"`
	Label    string `json:"label"`
	AreaType string `json:"area-type"`
}

Areas is an area model with ID, Label, and area-type

type GetAreaTypesResponse added in v1.2.0

type GetAreaTypesResponse struct {
	AreaTypes []AreaType `json:"area-types"`
}

GetAreaTypesResponse is the response object for GET /area-types

type GetAreasRequest added in v1.2.0

type GetAreasRequest struct {
	Dataset  string `schema:"dataset"`
	AreaType string `schema:"area-type"`
	Text     string `schema:"text"`
}

GetAreasRequest defines the schema for the GET /areas query parameter

type GetAreasResponse added in v1.2.0

type GetAreasResponse struct {
	Areas []Areas `json:"areas"`
}

GetAreasResponse is the response object for GET /areas

type GetPopulationTypesResponse added in v1.2.0

type GetPopulationTypesResponse struct {
	PopulationTypes
}

type PopulationType

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

func NewPopulationType

func NewPopulationType(name string) *PopulationType

type PopulationTypes

type PopulationTypes struct {
	Items []PopulationType `json:"items"`
}

func NewPopulationTypes

func NewPopulationTypes(names []string) PopulationTypes

Jump to

Keyboard shortcuts

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