infrared

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 13, 2015 License: MIT Imports: 9 Imported by: 1

Documentation

Overview

Package lib is a generated protocol buffer package.

It is generated from these files:

lib/infrared.proto

It has these top-level messages:

Heartbeat

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigGet

func ConfigGet(res rest.ResponseWriter, req *rest.Request)

func ConfigSet

func ConfigSet(res rest.ResponseWriter, req *rest.Request)

func NodeCreate

func NodeCreate(res rest.ResponseWriter, req *rest.Request)

func NodeGet

func NodeGet(res rest.ResponseWriter, req *rest.Request)

func NodeHeartbeat

func NodeHeartbeat(res rest.ResponseWriter, req *rest.Request)

func NodeList

func NodeList(res rest.ResponseWriter, req *rest.Request)

func NodeRemove

func NodeRemove(res rest.ResponseWriter, req *rest.Request)

func NodeUpdate

func NodeUpdate(res rest.ResponseWriter, req *rest.Request)

func SetupHttpEndpoint added in v1.1.0

func SetupHttpEndpoint(server *InfraredServer) error

func SetupUdpEndpoint added in v1.1.0

func SetupUdpEndpoint(server *InfraredServer) error

func StartHttpEndpoint added in v1.1.0

func StartHttpEndpoint(server *InfraredServer, complete chan bool)

func StartUdpEndpoint added in v1.1.0

func StartUdpEndpoint(server *InfraredServer, complete chan bool)

Types

type APIError

type APIError struct {
	Code    int    `json:"code"`
	Title   string `json:"error"`
	Message string `json:"message"`
}

func NewAPIError

func NewAPIError() APIError

func (APIError) Error

func (e APIError) Error() string

func (APIError) FromQueryError

func (e APIError) FromQueryError(err error) APIError

func (APIError) ToResponse

func (e APIError) ToResponse(res rest.ResponseWriter)

type Heartbeat added in v1.1.0

type Heartbeat struct {
	Id               *string `protobuf:"bytes,1,req,name=id" json:"id,omitempty"`
	NodeType         *string `protobuf:"bytes,2,req,name=node_type" json:"node_type,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

func (*Heartbeat) GetId added in v1.1.0

func (m *Heartbeat) GetId() string

func (*Heartbeat) GetNodeType added in v1.1.0

func (m *Heartbeat) GetNodeType() string

func (*Heartbeat) ProtoMessage added in v1.1.0

func (*Heartbeat) ProtoMessage()

func (*Heartbeat) Reset added in v1.1.0

func (m *Heartbeat) Reset()

func (*Heartbeat) String added in v1.1.0

func (m *Heartbeat) String() string

type InfraredServer added in v1.1.0

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

func Setup

func Setup(config *config.Server) *InfraredServer

func (InfraredServer) Start added in v1.1.0

func (server InfraredServer) Start()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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