Explorar o código

added Extra field for fingerprint to be able to save extra data

Tobias von Dewitz %!s(int64=3) %!d(string=hai) anos
pai
achega
924fa3bad9
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      fingerprint.go

+ 1 - 0
fingerprint.go

@@ -25,6 +25,7 @@ type Fingerprint struct {
 	Bot           bool                   `bson:"bot" json:"b" form:"b"`
 	ASN           *asndb.ASN             `bson:"asn" json:"asn" form:"asn"`
 	Country       string                 `bson:"country" json:"country" form:"country"`
+	Extra         map[string]string      `bson:"extra" json:"extra" form:"extra"`
 	//UserAgent           string        `bson:"user_agent" json:"user_agent" form:"user_agent"`
 	//Adblock             bool          `bson:"adblock" json:"adblock" form:"adblock"`
 	//AvailableResolution []int         `bson:"available_resolution" json:"available_resolution" form:"available_resolution"`