api

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2018 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

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

API is the main REST API

func NewAPI

func NewAPI(config *conf.Configuration, db *store.DB, version string) *API

NewAPI instantiates a new REST API

func (*API) Start

func (a *API) Start(addr string)

Start starts API at address

type DeviceResponse

type DeviceResponse struct {
	*model.Device
}

DeviceResponse holds device data

type Message

type Message struct {
	Error string `json:"error,omitempty"`
}

Message struct contains error

Jump to

Keyboard shortcuts

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