Documentation
¶
Index ¶
Constants ¶
View Source
const (
Sleep = 16 * time.Second
)
Variables ¶
View Source
var DefaultCheckin = Checkin{Version: 3}
View Source
var DefaultConfig = Config{ DeviceConfiguration{ TouchScreen: 1, Keyboard: 1, Navigation: 1, ScreenLayout: 1, HasFiveWayNavigation: true, HasHardKeyboard: true, ScreenDensity: 1, GlEsVersion: 0x0009_0000, SystemAvailableFeature: []string{ "android.hardware.touchscreen", "android.hardware.wifi", }, NativePlatform: []string{ "armeabi-v7a", }, }, }
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 `protobuf:"bytes,1"`
}
type Delivery ¶ added in v1.1.9
type Delivery struct {
AppDeliveryData struct {
DownloadUrl string `protobuf:"bytes,3"`
} `protobuf:"bytes,2"`
}
type Details ¶ added in v1.0.1
type Details struct {
DocV2 struct {
DocumentDetails struct {
AppDetails struct {
DeveloperName string `protobuf:"bytes,1"`
VersionCode int `protobuf:"varint,3"`
Version string `protobuf:"bytes,4"`
InstallationSize int `protobuf:"varint,9"`
DeveloperEmail string `protobuf:"bytes,11"`
} `protobuf:"bytes,1"`
} `protobuf:"bytes,13"`
} `protobuf:"bytes,4"`
}
type Device ¶ added in v1.0.6
type Device struct {
Android_ID int64
}
type DeviceConfiguration ¶ added in v1.2.1
type DeviceConfiguration struct {
TouchScreen int32 `protobuf:"varint,1"`
Keyboard int32 `protobuf:"varint,2"`
ScreenLayout int32 `protobuf:"varint,4"`
HasHardKeyboard bool `protobuf:"varint,5"`
ScreenDensity int32 `protobuf:"varint,7"`
GlEsVersion int32 `protobuf:"varint,8"`
SystemAvailableFeature []string `protobuf:"bytes,10"`
NativePlatform []string `protobuf:"bytes,11"`
}
Click to show internal directories.
Click to hide internal directories.