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 ¶
- func ConfigGet(res rest.ResponseWriter, req *rest.Request)
- func ConfigSet(res rest.ResponseWriter, req *rest.Request)
- func NodeCreate(res rest.ResponseWriter, req *rest.Request)
- func NodeGet(res rest.ResponseWriter, req *rest.Request)
- func NodeHeartbeat(res rest.ResponseWriter, req *rest.Request)
- func NodeList(res rest.ResponseWriter, req *rest.Request)
- func NodeRemove(res rest.ResponseWriter, req *rest.Request)
- func NodeUpdate(res rest.ResponseWriter, req *rest.Request)
- func SetupHttpEndpoint(server *InfraredServer) error
- func SetupUdpEndpoint(server *InfraredServer) error
- func StartHttpEndpoint(server *InfraredServer, complete chan bool)
- func StartUdpEndpoint(server *InfraredServer, complete chan bool)
- type APIError
- type Heartbeat
- type InfraredServer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NodeCreate ¶
func NodeCreate(res rest.ResponseWriter, req *rest.Request)
func NodeHeartbeat ¶
func NodeHeartbeat(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) FromQueryError ¶
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) GetNodeType ¶ added in v1.1.0
func (*Heartbeat) ProtoMessage ¶ added in v1.1.0
func (*Heartbeat) ProtoMessage()
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()
Click to show internal directories.
Click to hide internal directories.