server

package
v0.0.0-...-21f4be4 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2013 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Token  = "" // needed by http://pm25.in
	DBUser = "root"
	DBPass = "toor"
	DBName = "pm25"
)

Functions

func Areas

func Areas() ([]string, error)

load all areas from db

func GetRecord

func GetRecord(w *rest.ResponseWriter, req *rest.Request)

func InitService

func InitService() (err error)

func Run

func Run(addr string, interval time.Duration) (err error)

Types

type Pm25

type Pm25 struct{}

func (*Pm25) CityList

func (*Pm25) CityList(ctx *jas.Context)

func (*Pm25) Details

func (*Pm25) Details(ctx *jas.Context)

func (*Pm25) History

func (*Pm25) History(ctx *jas.Context)

Jump to

Keyboard shortcuts

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