51 lines
1.7 KiB
Go
51 lines
1.7 KiB
Go
package router
|
|
|
|
type StartSessionRequest struct {
|
|
Token string `json:"token"`
|
|
UserUUID *string `json:"userUUID"`
|
|
RevID string `json:"revID"`
|
|
Timestamp int64 `json:"timestamp"`
|
|
TrackerVersion string `json:"trackerVersion"`
|
|
IsSnippet bool `json:"isSnippet"`
|
|
DeviceMemory uint64 `json:"deviceMemory"`
|
|
JsHeapSizeLimit uint64 `json:"jsHeapSizeLimit"`
|
|
ProjectKey *string `json:"projectKey"`
|
|
Reset bool `json:"reset"`
|
|
UserID string `json:"userID"`
|
|
}
|
|
|
|
type StartSessionResponse struct {
|
|
Timestamp int64 `json:"timestamp"`
|
|
StartTimestamp int64 `json:"startTimestamp"`
|
|
Delay int64 `json:"delay"`
|
|
Token string `json:"token"`
|
|
UserUUID string `json:"userUUID"`
|
|
SessionID string `json:"sessionID"`
|
|
ProjectID string `json:"projectID"`
|
|
BeaconSizeLimit int64 `json:"beaconSizeLimit"`
|
|
}
|
|
|
|
type NotStartedRequest struct {
|
|
ProjectKey *string `json:"projectKey"`
|
|
TrackerVersion string `json:"trackerVersion"`
|
|
DoNotTrack bool `json:"DoNotTrack"`
|
|
}
|
|
|
|
type StartIOSSessionRequest struct {
|
|
Token string `json:"token"`
|
|
ProjectKey *string `json:"projectKey"`
|
|
TrackerVersion string `json:"trackerVersion"`
|
|
RevID string `json:"revID"`
|
|
UserUUID *string `json:"userUUID"`
|
|
UserOSVersion string `json:"userOSVersion"`
|
|
UserDevice string `json:"userDevice"`
|
|
Timestamp uint64 `json:"timestamp"`
|
|
}
|
|
|
|
type StartIOSSessionResponse struct {
|
|
Token string `json:"token"`
|
|
ImagesHashList []string `json:"imagesHashList"`
|
|
UserUUID string `json:"userUUID"`
|
|
BeaconSizeLimit int64 `json:"beaconSizeLimit"`
|
|
SessionID string `json:"sessionID"`
|
|
}
|