pie

package
v0.0.0-...-af4e695 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2016 License: BSD-2-Clause Imports: 0 Imported by: 2

Documentation

Index

Constants

View Source
const (
	// Key is the format by which the keys for pies are formed
	Key = "pie_%d"

	// CountKey is the key use to store the id incrementer
	CountKey = "pieCounter"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DataPie

type DataPie struct {
	ID        int64
	Name      string
	ImageURL  string
	Slices    int
	Price     float64
	Purchases []int64
	Labels    []int64
}

DataPie is the pie data stored in the database

type Pie

type Pie struct {
	DataPie
	RemainingSlices int
}

Pie includes DataPie, and any computed values

func (*Pie) Populate

func (dp *Pie) Populate()

Populate fills in computed values

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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