staticlegacy

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: 4 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 Dataset

type Dataset struct {
	Title              string              `json:"title"`
	Downloads          []Download          `json:"downloads"`
	URI                string              `json:"uri"`
	HasVersions        bool                `json:"has_versions"`
	SupplementaryFiles []SupplementaryFile `json:"supplementary_files"`
	VersionLabel       string              `json:"version_label"`
	IsLast             bool                `json:"is_last"`
}

Dataset has the file and title information for an individual dataset

type DatasetLandingPage

type DatasetLandingPage struct {
	DatasetID           string          `json:"dataset_id"`
	FilterID            string          `json:"filter_id"`
	Related             Related         `json:"related"`
	Datasets            []Dataset       `json:"datasets"`
	Notes               string          `json:"markdown"`
	MetaDescription     string          `json:"meta_description"`
	IsNationalStatistic bool            `json:"national_statistic"`
	Survey              string          `json:"survey"`
	ReleaseDate         string          `json:"release_date"`
	NextRelease         string          `json:"next_release"`
	IsTimeseries        bool            `json:"is_timeseries"`
	Corrections         []Message       `json:"corrections"`
	Notices             []Message       `json:"notices"`
	ParentPath          string          `json:"parent_path"`
	FeedbackAPIURL      string          `json:"feedback_api_url"`
}

DatasetLandingPage represents a frontend dataset landing page

type Download

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

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

type Message

type Message struct {
	Date     string `json:"date"`
	Markdown string `json:"markdown"`
}

Message has a date and time, used for either correction or notices

type Page

type Page struct {
	model.Page
	DatasetLandingPage DatasetLandingPage `json:"data"`
	FilterID           string             `json:"filter_id"`
	contact.Details
}

Page contains data re-used for each page type a Data struct for data specific to the page type

type Related struct {
	Publications       []related.Related `json:"related_publications"`
	FilterableDatasets []related.Related `json:"related_filterable_datasets"`
	Datasets           []related.Related `json:"related_datasets"`
	Methodology        []related.Related `json:"related_methodology"`
	Links              []related.Related `json:"related_links"`
}

Related content (split by type) to this page

type SupplementaryFile

type SupplementaryFile struct {
	Title       string `json:"title"`
	Extension   string `json:"extension"`
	Size        string `json:"size"`
	URI         string `json:"uri"`
	DownloadURL string `json:"download_url"`
}

SupplementaryFile is a downloadable file that is associated to an individual dataset

Jump to

Keyboard shortcuts

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