dbhelper

package
v0.0.0-...-10596c8 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2016 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DBNAME    string
	TABLENAME string
	UNAME     string
	PASSWD    string
)

Functions

func GetAllNodeData

func GetAllNodeData(w rest.ResponseWriter, r *rest.Request)

func GetCountryName

func GetCountryName(w rest.ResponseWriter, r *rest.Request)

func SetupPGDatabase

func SetupPGDatabase() (db *sql.DB)

Types

type NodeData

type NodeData struct {
	Placename string  `db:"placename"`
	Lon       float64 `db:"lon"`
	Lat       float64 `db:"lat"`
}

Jump to

Keyboard shortcuts

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