mirror of
https://github.com/mpolden/echoip.git
synced 2025-07-17 14:33:30 +02:00
Added coordinates from City database
This commit is contained in:
committed by
Martin Polden
parent
b821b1efcc
commit
ac4a9de770
@ -20,7 +20,10 @@ func (t *testDb) Country(net.IP) (geo.Country, error) {
|
||||
return geo.Country{Name: "Elbonia", ISO: "EB"}, nil
|
||||
}
|
||||
|
||||
func (t *testDb) City(net.IP) (string, error) { return "Bornyasherk", nil }
|
||||
func (t *testDb) City(net.IP) (database.City, error) {
|
||||
return database.City{Name: "Bornyasherk"}, nil
|
||||
}
|
||||
|
||||
func (t *testDb) IsEmpty() bool { return false }
|
||||
|
||||
func testServer() *Server {
|
||||
|
Reference in New Issue
Block a user