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.faketouch", "android.hardware.location", "android.hardware.screen.portrait", "android.hardware.touchscreen", "android.hardware.wifi", }, NativePlatform: []string{ "armeabi-v7a", }, }, }
Functions ¶
This section is empty.
Types ¶
type AppDetails ¶ added in v1.1.4
type Auth ¶ added in v1.0.4
func (Auth) Details ¶ added in v1.0.4
func (a Auth) Details(dev *Device, app string) (*AppDetails, error)
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 Device ¶ added in v1.0.6
type Device struct {
Android_ID int64
}
type DeviceConfiguration ¶ added in v1.2.1
Click to show internal directories.
Click to hide internal directories.