Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *badger.DB
DB the connection to database
Functions ¶
func GetSourceURL ¶
GetSourceURL set source url from query param or Referer header
Types ¶
type ClapperInfo ¶
ClapperInfo information about clapper
type Item ¶
type Item struct { SourceIP string Claps int Clappers []ClapperInfo }
Item data structure to be saved to db
Click to show internal directories.
Click to hide internal directories.