Versions in this module Expand all Collapse all v0 v0.1.1 Jul 10, 2024 v0.1.0 Jun 13, 2024 Changes in this version + type ASNFinder interface + AnnotateIP func(src string) *annotator.Network + Reload func(ctx context.Context) + type IataFinder interface + Find func(iata string) (iata.Row, error) + Load func(ctx context.Context) error + Lookup func(country string, lat, lon float64) (string, error) + type MaxmindFinder interface + City func(ip net.IP) (*geoip2.City, error) + Reload func(ctx context.Context) error + type Server struct + ASN ASNFinder + DNS dnsiface.Service + Iata IataFinder + Maxmind MaxmindFinder + Project string + func NewServer(project string, finder IataFinder, maxmind MaxmindFinder, asn ASNFinder, ...) *Server + func (s *Server) Delete(rw http.ResponseWriter, req *http.Request) + func (s *Server) Live(rw http.ResponseWriter, req *http.Request) + func (s *Server) Lookup(rw http.ResponseWriter, req *http.Request) + func (s *Server) Ready(rw http.ResponseWriter, req *http.Request) + func (s *Server) Register(rw http.ResponseWriter, req *http.Request) + func (s *Server) Reload(ctx context.Context)