datasetLandingPageStatic

package
v1.5.5 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2020 License: MIT Imports: 1 Imported by: 1

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"`
	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"`
}

DatasetLandingPage represents a frontend dataset landing page

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 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"`
	model.ContactDetails
}

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

type Related struct {
	Publications       []model.Related `json:"related_publications"`
	FilterableDatasets []model.Related `json:"related_filterable_datasets"`
	Datasets           []model.Related `json:"related_datasets"`
	Methodology        []model.Related `json:"related_methodology"`
	Links              []model.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"`
}

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