Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/AndreasBriese/ipLocator
/ functions
Functions
8 in github.com/AndreasBriese/ipLocator
⨍
Functions
8
◇
Types & classes
1
↓ 4 callers
Function
lookUpIPList
lookUpIPList takes pointer to current database & ipList []string returns geoLocs map[string]string with geoLocs["ip"]=Cityname (Country- Region)
ipLocator.go:447
↓ 2 callers
Function
lookUpCityID
lookUpCityID takes pointer to current database and IP (string) to search for returns the cityId and geoData = [longitude, latitude]
ipLocator.go:479
↓ 1 callers
Function
logPanic
(function func(http.ResponseWriter, *http.Request))
ipLocator.go:159
↓ 1 callers
Function
makeDatabase
makeDatabase takes database return error != nil if not successful renews all database entries and bloom filters
ipLocator.go:566
↓ 1 callers
Function
unzip
unzip func right after the testing proc from archive/zip
ipLocator.go:334
Function
init
()
ipLocator.go:148
Function
main
()
ipLocator.go:170
Function
rootHandler
implement basic server for JSON or plain-text results
ipLocator.go:385