github.com/znasllc-io/memql/component/metadata v0.0.0-20260907104019-c60c4c3ad52b
Go module source archive layoutArchive contains go.mod
SHA-2563e68f5464449e33239beaa0ddd5b8a400fe680ef72f092adab1673b163d7ec18
MaleculeMd₃(InPa₂)
Evidence
1package metadata
2
3import (
4 "fmt"
5 "log/slog"
6 "net"
7 "sync"
8
9 "github.com/oschwald/geoip2-golang"
10)
11
12// GeoIPResolver resolves IP addresses to geographic information using MaxMind GeoLite2.
13// Thread-safe. Gracefully degrades if the database file is not available.
14type GeoIPResolver struct {
15 reader *geoip2.Reader
16 mu sync …
40:34… ader}
41}
42
43// Resolve returns geographic metadata for an IP address.
44// Returns nil if the IP is invalid, private, or if no database is loaded.
45func …
No evidence locations were recorded for this file. Raw result