api

package
v3.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DependentDeviceDelete added in v0.1.6

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

func DependentDeviceQuery

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

func DependentDeviceRestart added in v0.1.6

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

func DependentDeviceUpdate added in v0.1.6

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

func DependentDevicesQuery

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

func GetStatus added in v0.1.3

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

func Logger

func Logger(inner http.Handler, name string) http.Handler

Logger logs API requests

func NewRouter

func NewRouter() *mux.Router

NewRouter creates a router to route API requests

func SetStatus added in v0.1.3

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

Types

type Route

type Route struct {
	Name        string
	Method      string
	Pattern     string
	HandlerFunc http.HandlerFunc
}

Route contains all the variables needed to define a route

type Routes

type Routes []Route

Routes holds all the routes assigned to the API

Jump to

Keyboard shortcuts

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