contract

package
v1.35.0 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2026 License: MIT Imports: 2 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Area added in v1.3.2

type Area struct {
	ID       string `json:"id"`
	Label    string `json:"label"`
	AreaType string `json:"area_type"`
}

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

type AreaType added in v1.2.0

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

AreaType is an area-type model with ID and Label

type Category added in v1.9.0

type Category struct {
	Id                    string              `json:"id"`
	Label                 string              `json:"label"`
	Categories            []DimensionCategory `json:"categories"`
	QualityStatementText  string              `json:"quality_statement_text"`
	DefaultCategorisation bool                `json:"default_categorisation"`
}

type Dimension added in v1.8.0

type Dimension struct {
	ID                   string `json:"id"`
	Label                string `json:"label"`
	Description          string `json:"description"`
	TotalCount           int    `json:"total_count"`
	QualityStatementText string `json:"quality_statement_text"`
}

Dimension is an area-type model with ID and Label

type DimensionCategory added in v1.19.0

type DimensionCategory struct {
	ID    string `json:"id"`
	Label string `json:"label"`
}

type GetAreaResponse added in v1.7.0

type GetAreaResponse struct {
	Area Area `json:"area"`
}

GetAreaResponse is the response object for GET /areas

type GetAreaTypeParentsRequest added in v1.8.0

type GetAreaTypeParentsRequest struct {
	QueryParams
	PopulationType string
	AreaType       string
}

type GetAreaTypeParentsResponse added in v1.3.2

type GetAreaTypeParentsResponse struct {
	PaginationResponse
	AreaTypes []AreaType `json:"items"`
}

type GetAreaTypesRequest added in v1.8.0

type GetAreaTypesRequest struct {
	QueryParams
	PopulationType string
}

type GetAreaTypesResponse added in v1.2.0

type GetAreaTypesResponse struct {
	PaginationResponse
	AreaTypes []AreaType `json:"items"`
}

GetAreaTypesResponse is the response object for GET /area-types

type GetAreasRequest added in v1.2.0

type GetAreasRequest struct {
	QueryParams
	Category string `schema:"q"`
}

GetAreasRequest defines the schema for the GET /areas query parameter

func (*GetAreasRequest) Valid added in v1.7.0

func (r *GetAreasRequest) Valid() error

type GetAreasResponse added in v1.2.0

type GetAreasResponse struct {
	PaginationResponse
	Areas []Area `json:"items"`
}

GetAreasResponse is the response object for GET /areas

type GetBaseVariableRequest added in v1.13.0

type GetBaseVariableRequest struct {
	PopulationType string
	Variable       string
}

type GetBaseVariableResponse added in v1.13.0

type GetBaseVariableResponse struct {
	Name  string `json:"name"`
	Label string `json:"label"`
}

type GetCategorisationsRequest added in v1.9.0

type GetCategorisationsRequest struct {
	QueryParams
	PopulationType string
	Variable       string
}

type GetCategorisationsResponse added in v1.9.0

type GetCategorisationsResponse struct {
	PaginationResponse
	Items []Category `json:"items"`
}

type GetDimensionCategoriesRequest added in v1.21.0

type GetDimensionCategoriesRequest struct {
	QueryParams
	PopulationType string
	Variables      string `schema:"dims"`
}

type GetDimensionCategoriesResponse added in v1.21.0

type GetDimensionCategoriesResponse struct {
	PaginationResponse
	Categories []Category `json:"items"`
}

type GetDimensionsDescriptionRequest added in v1.21.0

type GetDimensionsDescriptionRequest struct {
	QueryParams
	PopulationType string
	DimensionNames []string `schema:"q"`
}

type GetDimensionsRequest added in v1.8.0

type GetDimensionsRequest struct {
	QueryParams
	PopulationType string
	SearchText     string `schema:"q"`
}

func (*GetDimensionsRequest) Valid added in v1.18.2

func (r *GetDimensionsRequest) Valid() error

type GetDimensionsResponse added in v1.8.0

type GetDimensionsResponse struct {
	PaginationResponse
	Dimensions []Dimension `json:"items"`
}

GetAreaTypesResponse is the response object for GET /dimensions

type GetMetadataResponse added in v1.22.0

type GetMetadataResponse struct {
	PopulationType   string `json:"population_type"`
	DefaultDatasetID string `json:"default_dataset_id"`
	Edition          string `json:"edition"`
	Version          int    `json:"version"`
}

type GetPopulationTypeResponse added in v1.24.0

type GetPopulationTypeResponse struct {
	PopulationType PopulationType `json:"population_type"`
}

type GetPopulationTypesRequest added in v1.16.0

type GetPopulationTypesRequest struct {
	DefaultDatasets bool `schema:"require-default-dataset"`
	QueryParams
}

type GetPopulationTypesResponse added in v1.2.0

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

func (*GetPopulationTypesResponse) Paginate added in v1.21.0

func (r *GetPopulationTypesResponse) Paginate()

type PaginationResponse added in v1.8.0

type PaginationResponse struct {
	Limit      int `json:"limit"`
	Offset     int `json:"offset"`
	Count      int `json:"count"`
	TotalCount int `json:"total_count"`
}

type PopulationType

type PopulationType struct {
	Name        string `json:"name"`
	Label       string `json:"label"`
	Description string `json:"description"`
	Type        string `json:"type"`
}

type PutMetadataRequest added in v1.22.0

type PutMetadataRequest struct {
	PopulationType   string `schema:"population-type"`
	DefaultDatasetID string `json:"default_dataset_id"`
	Edition          string `json:"edition"`
	Version          int    `json:"version"`
}

type QueryParams added in v1.7.0

type QueryParams struct {
	Limit  int `schema:"limit"`
	Offset int `schema:"offset"`
}

func (*QueryParams) Valid added in v1.7.0

func (q *QueryParams) Valid() error

Jump to

Keyboard shortcuts

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