models

package
v0.0.0-...-0a4b280 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2014 License: GPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	Id        int64
	Profile   string
	Created   time.Time
	LastVisit time.Time
}

type Goal

type Goal struct {
	Id        int64
	AccountId int64
	Calories  int64
	Date      time.Time
}

type History

type History struct {
	Id        int64
	AccountId int64
	Product   string
	Calories  int64
	Date      time.Time
}

type Overview

type Overview struct {
	Accounts int64
	Calories int64
}

type ResponseStatistics

type ResponseStatistics struct {
	Goal    int64
	Current int64
	Streak  int64
	Weight  float64
}

type ResponseTrends

type ResponseTrends struct {
	Labels  []int
	Goals   map[string]int64
	Weights map[string]float64
	History map[string]int64
}

type Weight

type Weight struct {
	Id        int64
	AccountId int64
	Weight    float64
	Date      time.Time
}

Jump to

Keyboard shortcuts

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