model

package
v1.94.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: MIT Imports: 3 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 Correction added in v1.28.0

type Correction struct {
	Reason string `json:"reason"`
	Date   string `json:"date"`
}

Correction represents a single correction on a version

type Dimension

type Dimension struct {
	Title             string   `json:"title"`
	Name              string   `json:"name"`
	Values            []string `json:"values"`
	OptionsURL        string   `json:"options_url"`
	TotalItems        int      `json:"total_items"`
	Description       string   `json:"description"`
	IsAreaType        bool     `json:"is_area_type"`
	IsCoverage        bool     `json:"is_coverage"`
	IsDefaultCoverage bool     `json:"is_default_coverage"`
	IsPopulationType  bool     `json:"is_population_type"`
	ShowChange        bool     `json:"show_change"`
	IsTruncated       bool     `json:"is_truncated"`
	TruncateLink      string   `json:"truncate_link"`
	ID                string   `json:"id"`
}

Dimension represents the data for a single dimension

type Download

type Download struct {
	Extension string `json:"extension"`
	Size      string `json:"size"`
	URI       string `json:"uri"`
}

Download has the details for the an individual dataset's downloadable files

type FilterDimension added in v1.42.0

type FilterDimension struct {
	filter.ModelDimension
	OptionsCount        int
	CategorisationCount int
}

FilterDimension represents a DTO for filter.Dimension with the additional OptionsCount field

type RelatedContentItem added in v1.69.0

type RelatedContentItem struct {
	Title string `json:"title"`
	Link  string `json:"link"`
	Text  string `json:"text"`
}

RelatedContentItem contains details for a section of related content

type Share added in v1.69.0

type Share struct {
	Title string `json:"title"`
	Link  string `json:"link"`
	Icon  string `json:"icon"`
}

Share includes details for a specific place the dataset can be shared Included icons: 'facebook', 'twitter', 'email', 'linkedin'

type ShareDetails added in v1.69.0

type ShareDetails struct {
	ShareLocations []Share `json:"share_locations"`
	Language       string  `json:"language"`
}

ShareDetails contains the locations the page can be shared to, as well as the language attribute for localisation

type Version

type Version struct {
	Title              string                              `json:"title"`
	Description        string                              `json:"description"`
	URL                string                              `json:"url"`
	ReleaseDate        string                              `json:"release_date"`
	NextRelease        string                              `json:"next_release"`
	Downloads          []Download                          `json:"downloads"`
	Edition            string                              `json:"edition"`
	Version            string                              `json:"version"`
	Contact            contact.Details                     `json:"contact"`
	IsCurrentPage      bool                                `json:"is_current"`
	VersionURL         string                              `json:"version_url"`
	Superseded         string                              `json:"superseded"`
	VersionNumber      int                                 `json:"version_number"`
	Date               string                              `json:"date"`
	Corrections        []Correction                        `json:"correction"`
	FilterURL          string                              `json:"filter_url"`
	IsLatest           bool                                `json:"is_latest"`
	QualityDesignation datasetAPIModels.QualityDesignation `json:"quality_designation"`
}

Version represents the data for a single version

Jump to

Keyboard shortcuts

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