ping.go 917 B

12345678910111213141516171819
  1. package data
  2. import (
  3. "github.com/scraperwall/ipmeta"
  4. )
  5. // Ping is used as a primitive way to validate that a browser has JS
  6. type Ping struct {
  7. Timestamp int64 `bson:"timestamp" json:"timestamp" form:"timestamp"`
  8. Checksum string `bson:"checksum" json:"checksum" form:"checksum"`
  9. Remote string `bson:"remote" json:"remote" form:"remote"`
  10. URL string `bson:"url" json:"url" form:"url"`
  11. Source string `bson:"source" json:"source" form:"source"`
  12. XForwardedFor string `bson:"x_forwarded_for" json:"x-forwarded-for" form:"x_forwarded_for"`
  13. XRealIP string `bson:"x_real_ip" json:"x-real-ip" form:"x_real_ip"`
  14. XScwIP string `bson:"x_scw_ip" json:"x-scw-ip" form:"x_scw_ip"`
  15. IPMeta *ipmeta.Meta `bson:"meta" json:"meta" form:"meta"`
  16. ClientID string `bson:"clientid" json:"clientid" form:"clientid"`
  17. }