-
Notifications
You must be signed in to change notification settings - Fork 0
/
model.go
37 lines (31 loc) · 1.07 KB
/
model.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package fullstory
type Session struct {
// ID is the fullstory session id
ID string `json:"id"`
}
type Browser struct {
URL string `json:"url,omitempty"`
UserAgent string `json:"user_agent,omitempty"`
InitialReferer string `json:"initial_referer,omitempty"`
}
type Mobile struct {
AppID string `json:"app_id,omitempty"`
AppVersion string `json:"app_version,omitempty"`
AppName string `json:"app_name,omitempty"`
BuildVariant string `json:"build_variant,omitempty"`
}
type Device struct {
Manufacturer string `json:"manufacturer,omitempty"`
Model string `json:"model,omitempty"`
ScreenWidth int32 `json:"screen_width,omitempty"`
ScreenHeight int32 `json:"screen_height,omitempty"`
ViewportWidth int32 `json:"viewport_width,omitempty"`
ViewportHeight int32 `json:"viewport_height,omitempty"`
}
type Location struct{}
type Context struct {
Browser Browser `json:"browser,omitempty"`
Mobile Mobile `json:"mobile,omitempty"`
Device Device `json:"device,omitempty"`
Location Location `json:"location,omitempty"`
}