time

package
v1.12.1 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2021 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"`
	GroupedSelection   GroupedSelection `json:"grouped_selection"`
}

Data represents the data for the time page

type GroupedSelection added in v1.8.0

type GroupedSelection struct {
	Months    []Month `json:"months"`
	YearStart string  `json:"year_start"`
	YearEnd   string  `json:"year_end"`
}
type Link struct {
	Label string `json:"label"`
	URL   string `json:"url"`
}

Link represents a link

type Month added in v1.8.0

type Month struct {
	Name       string `json:"name"`
	IsSelected bool   `json:"is_selected"`
}

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