liveplant-server

command module
v0.0.0-...-0058b57 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2015 License: MIT Imports: 12 Imported by: 0

README

Liveplant Server Build Status

Liveplant server is a REST API for liveplant.io

Get started

Development Environment
  1. Install Vagrant
  2. run vagrant up
  3. vagrant ssh to access your brand new, fully configured development environment.
Development Commands
  • make will compile and install liveplant-server inside your GOPATH.
  • make run will compile and run your code. Your server will be available at localhost:5000.
  • make fmt will format your code with gofmt.

Usage

For usage run liveplant-server -h

-debug=false: Whether or not to enable debug logger.

Environment Variables

  • LIVEPLANTDEBUG set to 1 to enable debug level logging.

Endpoints

GET /current_action

This endpoint is polled by the liveplant hardware. It exposes an enumerable action string and a unix timestamp integer. The hardware knows when it last took action. An is only taken action if the new action's timestamp is newer.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Godeps
_workspace/src/github.com/carbocation/interpose
Interpose is a minimalist Golang middleware that uses only `http.Handler` and `func(http.Handler)http.Handler`.
Interpose is a minimalist Golang middleware that uses only `http.Handler` and `func(http.Handler)http.Handler`.
_workspace/src/github.com/gorilla/context
Package context stores values shared during a request lifetime.
Package context stores values shared during a request lifetime.
_workspace/src/github.com/gorilla/mux
Package gorilla/mux implements a request router and dispatcher.
Package gorilla/mux implements a request router and dispatcher.
_workspace/src/golang.org/x/net/netutil
Package netutil provides network utility functions, complementing the more common ones in the net package.
Package netutil provides network utility functions, complementing the more common ones in the net package.

Jump to

Keyboard shortcuts

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