Documentation ¶
Index ¶
Constants ¶
View Source
const (
Sleep = 16 * time.Second
)
Variables ¶
View Source
var DefaultCheckin = Checkin{Version: 3}
View Source
var DefaultConfig = Config{ DeviceConfiguration: DeviceConfiguration{ TouchScreen: 1, Keyboard: 1, Navigation: 1, ScreenLayout: 1, HasHardKeyboard: true, HasFiveWayNavigation: true, ScreenDensity: 1, GlEsVersion: 0x0009_0000, SystemAvailableFeature: []string{ "android.hardware.camera", "android.hardware.location", "android.hardware.microphone", "android.hardware.screen.landscape", "android.hardware.screen.portrait", "android.hardware.touchscreen", "android.hardware.wifi", }, NativePlatform: []string{ "x86", }, }, }
Functions ¶
This section is empty.
Types ¶
type Auth ¶ added in v1.0.4
func (Auth) Upload ¶ added in v1.1.3
This seems to return `StatusOK`, even with invalid requests, and the response body only contains a token, that doesnt seem to indicate success or failure. Only way I know to check, it to try the `deviceID` with a `details` request or similar. Also, after the POST, you need to wait at least 16 seconds before the `deviceID` can be used.
type Checkin ¶ added in v1.0.6
type Checkin struct { Checkin struct{} `json:"checkin"` Version int `json:"version"` }
type Config ¶ added in v1.2.1
type Config struct {
DeviceConfiguration DeviceConfiguration `json:"1"`
}
type Delivery ¶ added in v1.1.9
type Delivery struct { Status int32 `json:"1"` AppDeliveryData struct { DownloadURL string `json:"3"` SplitDeliveryData []SplitDeliveryData `json:"15"` } `json:"2"` }
type Device ¶ added in v1.0.6
type Device struct {
Android_ID int64
}
type DeviceConfiguration ¶ added in v1.2.1
type SplitDeliveryData ¶ added in v1.3.0
Click to show internal directories.
Click to hide internal directories.