|
@@ -9,17 +9,18 @@ import (
|
|
|
|
|
|
type Fingerprint struct {
|
|
type Fingerprint struct {
|
|
// ID bson.ObjectId `bson:"_id,omitempty" json:"_id"`
|
|
// ID bson.ObjectId `bson:"_id,omitempty" json:"_id"`
|
|
- ClientID string `bson:"cid" json:"cid" form:"cid"`
|
|
|
|
- Remote string `bson:"remote" json:"remote" form:"remote"`
|
|
|
|
- Url string `bson:"url" json:"url" form:"url"`
|
|
|
|
- Fingerprint string `bson:"fp" json:"fp" form:"fp"`
|
|
|
|
- CreatedAt time.Time `bson:"created_at" json:"created_at" form:"created_at"`
|
|
|
|
- Source string `bson:"source" json:"source" form:"source"`
|
|
|
|
- XForwardedFor string `bson:"x_forwarded_for" json:"x-forwarded-for" form:"x_forwarded_for"`
|
|
|
|
- XRealIP string `bson:"x_real_ip" json:"x-real-ip" form:"x_real_ip"`
|
|
|
|
- XScwIP string `bson:"x_scw_ip" json:"x-scw-ip" form:"x_scw_ip"`
|
|
|
|
- Grs *grs.GRS `bson:"grs" json:"grs" form:"grs"`
|
|
|
|
- GeoIP *geoip.GeoIP `bson:"geoip" json:"geoip" form:"geoip"`
|
|
|
|
|
|
+ ClientID string `bson:"cid" json:"cid" form:"cid"`
|
|
|
|
+ Remote string `bson:"remote" json:"remote" form:"remote"`
|
|
|
|
+ Url string `bson:"url" json:"url" form:"url"`
|
|
|
|
+ Fingerprint string `bson:"fp" json:"fp" form:"fp"`
|
|
|
|
+ CreatedAt time.Time `bson:"created_at" json:"created_at" form:"created_at"`
|
|
|
|
+ Source string `bson:"source" json:"source" form:"source"`
|
|
|
|
+ XForwardedFor string `bson:"x_forwarded_for" json:"x-forwarded-for" form:"x_forwarded_for"`
|
|
|
|
+ XRealIP string `bson:"x_real_ip" json:"x-real-ip" form:"x_real_ip"`
|
|
|
|
+ XScwIP string `bson:"x_scw_ip" json:"x-scw-ip" form:"x_scw_ip"`
|
|
|
|
+ Grs *grs.GRS `bson:"grs" json:"grs" form:"grs"`
|
|
|
|
+ GeoIP *geoip.GeoIP `bson:"geoip" json:"geoip" form:"geoip"`
|
|
|
|
+ Data map[string]interface{} `bson:"data" json:"data" form:"data"`
|
|
//UserAgent string `bson:"user_agent" json:"user_agent" form:"user_agent"`
|
|
//UserAgent string `bson:"user_agent" json:"user_agent" form:"user_agent"`
|
|
//Adblock bool `bson:"adblock" json:"adblock" form:"adblock"`
|
|
//Adblock bool `bson:"adblock" json:"adblock" form:"adblock"`
|
|
//AvailableResolution []int `bson:"available_resolution" json:"available_resolution" form:"available_resolution"`
|
|
//AvailableResolution []int `bson:"available_resolution" json:"available_resolution" form:"available_resolution"`
|