dao

package
v0.0.0-...-241ef3f Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2015 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

Types

type ByDate

type ByDate []Point

func (ByDate) Len

func (s ByDate) Len() int

func (ByDate) Less

func (s ByDate) Less(i, j int) bool

func (ByDate) Swap

func (s ByDate) Swap(i, j int)

type BySize

type BySize []Series

func (BySize) Len

func (s BySize) Len() int

func (BySize) Less

func (s BySize) Less(i, j int) bool

func (BySize) Swap

func (s BySize) Swap(i, j int)

type Point

type Point struct {
	Time  int64 `json:"x"`
	Value int   `json:"y"`
}

type Series

type Series struct {
	Name string  `json:"name"`
	Data []Point `json:"data"`
}

func Query

func Query(from, to time.Time) []Series

Jump to

Keyboard shortcuts

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