Documentation ¶
Index ¶
- Variables
- func CallApi(api string, method string, headers map[string]interface{}, ...) (int, error)
- func CheckCode(r map[string]interface{}) bool
- func ReqBody(manager VeSync, type_ string) map[string]interface{}
- func ReqBodyBase(manager VeSync) map[string]interface{}
- func ReqBodyDetails() map[string]interface{}
- type VeSync
- type VeSync300S
- type VeSyncAir131
- type VeSyncBulbESL100
- type VeSyncBulbESL100CW
- type VeSyncDimmerSwitch
- type VeSyncOutdoorPlug
- type VeSyncOutlet10A
- type VeSyncOutlet15A
- type VeSyncOutlet7A
- type VeSyncWallSwitch
Constants ¶
This section is empty.
Variables ¶
View Source
var ApiRateLimit int64 = 30
View Source
var ApiTimeout = 5
View Source
var AppVersion = "2.5.1"
View Source
var BaseUrl = "https://smartapi.vesync.com"
View Source
var BypassAppV = "VeSync 3.0.51"
View Source
var DefaultRegion = "US"
View Source
var MobileId = "1234567890123456"
View Source
var PhoneBrand = "SM N9005"
View Source
var PhoneOs = "Android"
View Source
var UserType = "1"
Functions ¶
func ReqBodyBase ¶
func ReqBodyDetails ¶
func ReqBodyDetails() map[string]interface{}
Types ¶
type VeSync ¶
type VeSync300S ¶
type VeSync300S struct { }
type VeSyncAir131 ¶
type VeSyncAir131 struct { }
type VeSyncBulbESL100 ¶
type VeSyncBulbESL100 struct { }
type VeSyncBulbESL100CW ¶
type VeSyncBulbESL100CW struct { }
type VeSyncDimmerSwitch ¶
type VeSyncDimmerSwitch struct { }
type VeSyncOutdoorPlug ¶
type VeSyncOutdoorPlug struct { }
type VeSyncOutlet10A ¶
type VeSyncOutlet10A struct { }
type VeSyncOutlet15A ¶
type VeSyncOutlet15A struct { }
type VeSyncOutlet7A ¶
type VeSyncOutlet7A struct { }
type VeSyncWallSwitch ¶
type VeSyncWallSwitch struct { }
Click to show internal directories.
Click to hide internal directories.