smalld

command module
v0.0.0-...-73a4086 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2015 License: BSD-3-Clause Imports: 9 Imported by: 0

README

Build Status

This is a micro-service. It accepts GET requests that contain a geolocation and return a data structure expressing labels for the the location queried.

Additionally it provides a feed of queries and responses that can be displayed.

The two functions are presented as http endpoints:

location/ accepts GET or POST with variables (lat, lon, acc, label)

events/ accepts GET and returns a feed of Server Sent Events

smalld requires a postgres database with the postgis extensions installed.

It aquires its configuration from the following environment variables:

SMALLD_DB_CONNECTION : a database connection string as specified in database/sql

SMALLD_URL_BASE : a string containing the prefix you wish to use for generating urls in responses

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