goservestars

command module
v0.0.0-...-a87d449 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2014 License: MIT Imports: 11 Imported by: 0

README

goservestars

Go app to serve star info from a database over HTTP+JSON+REST.

Currently serves static star info from a given HYG postgresql database over HTTP/REST at a given port at /star/{id}

For example

goservestars -database hyg -user jimbob -password nascarrulez -port 8081

will start serving. Then, directing a web browser to

http://localhost:8081/star/24378

will return

{id: 24378, name: "Rigel", x: 46.220870971679688, y: 229.943740844726562, z: -33.805030822753906, color: -0.029999999329448, magnitude: 0.180000007152557}

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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