datasetVersionsList

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 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 Correction

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

Correction represents a single correction on the versions list 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 Page

type Page struct {
	model.Page
	Data VersionsList `json:"data"`
}

Page contains the data re-used on each page as well as the data for the current page

type Version

type Version struct {
	Date          string       `json:"date"`
	Corrections   []Correction `json:"correction"`
	Downloads     []Download   `json:"downloads"`
	FilterURL     string       `json:"filter_url"`
	VersionURL    string       `json:"version_url"`
	VersionNumber int          `json:"version_number"`
	Superseded    string       `json:"superseded"`
	IsLatest      bool         `json:"is_latest"`
	Title         string       `json:"title"`
	Edition       string       `json:"edition"`
}

Version represents an edition version on the version list page

type VersionsList

type VersionsList struct {
	LatestVersionURL string    `json:"latest_version_url"`
	Versions         []Version `json:"versions"`
}

VersionsList represents the data on the versions list page

Jump to

Keyboard shortcuts

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