Basic API to fetch data from maxmind geoip databases over http

This commit is contained in:
2018-07-12 23:54:37 -07:00
parent dc4018e8f4
commit f5f0ea4931
253 changed files with 167757 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
// +build !windows,!appengine
package maxminddb
import (
"golang.org/x/sys/unix"
)
func mmap(fd int, length int) (data []byte, err error) {
return unix.Mmap(fd, 0, length, unix.PROT_READ, unix.MAP_SHARED)
}
func munmap(b []byte) (err error) {
return unix.Munmap(b)
}