model

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dataset

type Dataset struct {
	ID    string `json:"id"`
	Title string `json:"title"`
}

func (Dataset) GetLabel added in v1.4.0

func (d Dataset) GetLabel() string

GetLabel will return the dataset's name. If the dataset does not have a title, it will instead return the ID

type EditMetadata added in v1.7.0

type EditMetadata struct {
	Dataset                datasetclient.DatasetDetails     `json:"dataset"`
	Version                datasetclient.Version            `json:"version"`
	Dimensions             []datasetclient.VersionDimension `json:"dimensions"`
	CollectionID           string                           `json:"collection_id"`
	CollectionState        string                           `json:"collection_state"`
	CollectionLastEditedBy string                           `json:"collection_last_edited_by"`
}

type EditVersionMetaData added in v1.5.0

type EditVersionMetaData struct {
	MetaData   MetaData `json:"meta_data"`
	Collection string   `json:"collection"`
	InstanceID string   `json:"instance_id"`
	Published  bool     `json:"published"`
}

type Edition added in v1.10.0

type Edition struct {
	ID          string `json:"id"`
	Title       string `json:"title"`
	ReleaseDate string `json:"release_date"`
}

type EditionsPage added in v1.10.0

type EditionsPage struct {
	DatasetName string    `json:"dataset_name"`
	Editions    []Edition `json:"editions"`
}

type LatestChanges added in v1.5.0

type LatestChanges struct {
	ID                    int    `json:"id"`
	Title                 string `json:"title"`
	Description           string `json:"description"`
	SimpleListHeading     string `json:"simple_list_heading"`
	SimpleListDescription string `json:"simple_list_description"`
}

type MetaData added in v1.5.0

type MetaData struct {
	Edition       string                     `json:"edition"`
	Version       int                        `json:"version"`
	ReleaseDate   ReleaseDate                `json:"release-date"`
	Notices       []Notice                   `json:"notices"`
	Dimensions    []dataset.VersionDimension `json:"dimensions"`
	UsageNotes    []UsageNote                `json:"usage_notes"`
	LatestChanges []LatestChanges            `json:"latest_changes"`

	Title                string           `json:"title"`
	Summary              string           `json:"summary"`
	Keywords             string           `json:"keywords"`
	NationalStatistic    bool             `json:"national_statistic"`
	License              string           `json:"license"`
	ContactName          string           `json:"contact_name"`
	ContactEmail         string           `json:"contact_email"`
	ContactTelephone     string           `json:"contact_telephone"`
	RelatedDatasets      []RelatedContent `json:"related_datasets"`
	RelatedPublications  []RelatedContent `json:"related_publications"`
	RelatedMethodologies []RelatedContent `json:"related_methodologies"`
	ReleaseFrequency     string           `json:"release_frequency"`
	NextReleaseDate      string           `json:"next_release_date"`
	UnitOfMeassure       string           `json:"unit_of_meassure"`
	QMI                  string           `json:"qmi"`
}

type Notice added in v1.5.0

type Notice struct {
	ID                    int    `json:"id"`
	Type                  string `json:"type"`
	Date                  string `json:"date"`
	Description           string `json:"description"`
	SimpleListHeading     string `json:"simple_list_heading"`
	SimpleListDescription string `json:"simple_list_description"`
}

type RelatedContent added in v1.5.0

type RelatedContent struct {
	ID                    int    `json:"id"`
	Title                 string `json:"title"`
	Description           string `json:"description"`
	Href                  string `json:"href"`
	SimpleListHeading     string `json:"simple_list_heading"`
	SimpleListDescription string `json:"simple_list_description"`
}

type ReleaseDate added in v1.5.0

type ReleaseDate struct {
	ReleaseDate string `json:"release_date"`
	Error       string `json:"error"`
}

type Topics added in v1.8.0

type Topics struct {
	Title string `json:"title"`
}

type UsageNote added in v1.5.0

type UsageNote struct {
	ID                    int    `json:"id"`
	Title                 string `json:"title"`
	Note                  string `json:"note"`
	SimpleListHeading     string `json:"simple_list_heading"`
	SimpleListDescription string `json:"simple_list_description"`
}

type Version added in v1.9.0

type Version struct {
	ID          string `json:"id"`
	Title       string `json:"title"`
	Version     int    `json:"version"`
	ReleaseDate string `json:"release_date"`
	State       string `json:"state"`
}

type VersionsPage added in v1.9.0

type VersionsPage struct {
	DatasetName string    `json:"dataset_name"`
	EditionName string    `json:"edition_name"`
	Versions    []Version `json:"versions"`
}

Jump to

Keyboard shortcuts

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