Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseReqeust ¶
type Client ¶
type Client interface {
Login(request LoginRequest) (*LoginResponse, error)
ListDevices(request ListDevicesRequest) (*ListDevicesResponse, error)
Connect(ConnectRequest) (*ConnectResponse, error)
}
type ConnectRequest ¶
type ConnectRequest struct {
BaseReqeust
DeviceAddress string `json:"deviceaddress"`
HostIP string `json:"hostip"`
Wait string `json:"wait"`
}
type ConnectResponse ¶
type ConnectResponse struct {
Status string `json:"status"`
Connection ConnectionInfo `json:"connection"`
}
type ConnectionInfo ¶
type DeviceEntry ¶
type DeviceEntry struct {
Address string `json:"deviceaddress"`
Alias string `json:"devicealias"`
Username string `json:"deviceusername"`
Type string `json:"devicetype"`
LastIP string `json:"devicelastip"`
ServiceTitle string `json:"servicetitle"`
WebEnabled string `json:"webenabled"`
//WebURI string `json:"weburi"`
LocalURI string `json:"localuri"`
}
type ListDevicesRequest ¶
type ListDevicesRequest struct {
BaseReqeust
}
type ListDevicesResponse ¶
type ListDevicesResponse struct {
Status string `json:"status"`
Devices []*DeviceEntry `json:"devices"`
}
type LoginRequest ¶
type LoginResponse ¶
type LoginResponse struct {
Status string `json:"status"`
Token string `json:"token"`
Email string `json:"email"`
GUID string `json:"guid"`
ServiceToken string `json:"service_token"`
ServiceLevel string `json:"service_level"`
StoragePlan string `json:"storage_plan"`
SecondaryAuth string `json:"secondary_auth"`
APIKey string `json:"apikey"`
AuthToken string `json:"auth_token"`
AuthExpiration int `json:"auth_expiration"`
ServiceAuthhash string `json:"service_authhash"`
DeveloperPlan string `json:"developer_plan"`
PortalPlan string `json:"portal_plan"`
PortalPlanExpiration string `json:"portal_plan_expires"`
ServiceFeatures string `json:"service_features"`
}
Click to show internal directories.
Click to hide internal directories.