routes

package
v0.0.0-...-a0e0d51 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2014 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ActiveClients = make(map[ClientConn]int)
View Source
var ActiveClientsRWMutex sync.RWMutex

Functions

func CreateDevice

func CreateDevice(r render.Render, err binding.Errors, device models.Device, data middleware.Data, req *http.Request)

func InitRoutes

func InitRoutes(m *martini.ClassicMartini)

func ListDevices

func ListDevices(r render.Render, data middleware.Data, req *http.Request)

func NewDevice

func NewDevice(r render.Render, data middleware.Data)

func Node

func Node(w http.ResponseWriter, r *http.Request)

func Socket

func Socket(w http.ResponseWriter, r *http.Request)

Types

type ClientConn

type ClientConn struct {
	// contains filtered or unexported fields
}

type NodeConnection

type NodeConnection struct {
	// contains filtered or unexported fields
}

type NodeMsg

type NodeMsg struct {
	Status  string
	Message string
}

Jump to

Keyboard shortcuts

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