-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapplication.go
More file actions
21 lines (18 loc) · 885 Bytes
/
Copy pathapplication.go
File metadata and controls
21 lines (18 loc) · 885 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package udetect
// App information
type App struct {
ExtID string `json:"eid,omitempty"` // External ID
Keywords string `json:"keywords,omitempty"` // Comma separated list of keywords about the site.
Cat []string `json:"cat,omitempty"` // Array of categories
Bundle string `json:"bundle,omitempty"` // App bundle or package name
StoreURL string `json:"storeurl,omitempty"` // App store URL for an installed app
Ver string `json:"ver,omitempty"` // App version
Paid int `json:"paid,omitempty"` // "1": Paid, "2": Free
PrivacyPolicy int `json:"pivacypolicy,omitempty"` // Default: 1 ("1": has a privacy policy)
}
// AppDefault object
var AppDefault App
// DomainPrepared value
func (a *App) DomainPrepared() []string {
return PrepareDomain(a.Bundle)
}