Documentation ¶
Index ¶
Constants ¶
View Source
const ( ActionClose = "close" ActionOpen = "open" StateUnknown = "unknown" StateOpen = "open" StateClosed = "closed" StateStopped = "stopped" )
Variables ¶
View Source
var ( // Debug indiciates whether to log HTTP responses to stderr Debug = false // ErrNotLoggedIn is returned whenever an operation is run the // user has not logged in ErrNotLoggedIn = errors.New("not logged in") )
Functions ¶
This section is empty.
Types ¶
type Device ¶
type Device struct { Account *Account SerialNumber string Type string Name string DoorState string }
Device defines a MyQ device
type Session ¶
Session represents an authenticated session to the MyQ service.
func (*Session) DeviceState ¶
DeviceState returns the device state (open, closed, etc.) for the provided device serial number
Click to show internal directories.
Click to hide internal directories.