dataset

package
v1.61.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DatasetPage

type DatasetPage struct {
	Versions            []Version           `json:"versions"`
	SupplementaryFiles  []SupplementaryFile `json:"supplementary_files"`
	Downloads           []Download          `json:"downloads"`
	IsNationalStatistic bool                `json:"national_statistic"`
	ReleaseDate         string              `json:"release_date"`
	NextRelease         string              `json:"next_release"`
	DatasetID           string              `json:"dataset_id"`
	URI                 string              `json:"uri"`
	Edition             string              `json:"edition"`
	Markdown            string              `json:"markdown"`
	ParentPath          string              `json:"parent_path"`
}

DatasetPage has the file and title information for an individual dataset

type Download

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

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

type Page

type Page struct {
	model.Page
	DatasetPage DatasetPage `json:"data"`
	contact.Details
}

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

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

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

type Version

type Version struct {
	URI              string     `json:"url"`
	UpdateDate       string     `json:"update_date"`
	CorrectionNotice string     `json:"correction_notice"`
	Label            string     `json:"label"`
	Downloads        []Download `json:"downloads"`
}

Version has the details for a previous version of the dataset

Jump to

Keyboard shortcuts

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