Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("The requested document was not found")
ErrNotFound is the error returned by the package when a document is not found to fulfill a request
Functions ¶
Types ¶
type DeviceResponse ¶
type DeviceType ¶
type RoomResponse ¶
type RoomResponse struct { Docs []Room `json:"docs"` Bookmark string `json:"bookmark"` Warning string `json:"warning"` }
Rooms
type Service ¶
Service represents a database service and the config necessary to run the service
func (*Service) GetDeviceByID ¶
GetDevicebyID gets a device document from couch given the id
func (*Service) GetDeviceTypeByID ¶
func (s *Service) GetDeviceTypeByID(deviceTypeID string) (*DeviceType, error)
GetDeviceTypeByID returns the device type document for the given id
func (*Service) GetDevicesByRoom ¶
GetDevicesByRoom returns an array of devices that are a part of the given room
Click to show internal directories.
Click to hide internal directories.