time

package
v1.5.8 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 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 Data

type Data struct {
	LatestTime         Value    `json:"latest_value"`
	FirstTime          Value    `json:"fist_time"`
	Values             []Value  `json:"values"`
	Months             []string `json:"months"`
	Years              []string `json:"years"`
	CheckedRadio       string   `json:"checked_radio"`
	FormAction         Link     `json:"form_action"`
	SelectedStartMonth string   `json:"selected_start_month"`
	SelectedStartYear  string   `json:"selected_start_year"`
	SelectedEndMonth   string   `json:"selected_end_month"`
	SelectedEndYear    string   `json:"selected_end_year"`
	Type               string   `json:"type"`
	DatasetTitle       string   `json:"dataset_title"`
}

Data represents the data for the time page

type Link struct {
	Label string `json:"label"`
	URL   string `json:"url"`
}

Link represents a link

type Page

type Page struct {
	model.Page
	Data     Data   `json:"data"`
	FilterID string `json:"filter_id"`
}

Page represents a time selection page

type Value

type Value struct {
	Month      string `json:"month,omitempty"`
	Year       string `json:"year,omitempty"`
	Option     string `json:"option"`
	IsSelected bool   `json:"is_selected"`
}

Value represents a single time value

Jump to

Keyboard shortcuts

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