models

package
v0.0.0-...-8ce9d39 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2016 License: MIT Imports: 0 Imported by: 6

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"`
	URL        string       `json:"url,omitempty"`
	Metadata   *Metadata    `json:"metadata,omitempty"`
	Dimensions []*Dimension `json:"dimensions,omitempty"`
	Data       *Table       `json:"data,omitempty"`
}

type Datasets

type Datasets struct {
	Items        []*Dataset `json:"items,omitempty"`
	Count        int        `json:"count"`
	Total        int        `json:"total"`
	StartIndex   int        `json:"startIndex"`
	ItemsPerPage int        `json:"itemsPerPage"`
}

type Dimension

type Dimension struct {
	ID   string `json:"id"`
	Name string `json:"name"` // Sex

	Options        []*DimensionOption `json:"options,omitempty"`
	SelectedOption *DimensionOption   `json:"selectedOption,omitempty"`
}

type DimensionOption

type DimensionOption struct {
	ID   string `json:"id"`
	Name string `json:"name"` // Male

	Options []*DimensionOption `json:"options,omitempty"`
}

type Metadata

type Metadata struct {
	Description string   `json:"description,omitempty"`
	Taxonomies  []string `json:"taxonomies,omitempty"`
}

type Row

type Row struct {
	Observation interface{}        // 123
	Dimensions  []*DimensionOption // Sex=Male
}

type Table

type Table struct {
	Rows []*Row
}

Jump to

Keyboard shortcuts

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