MCPcopy Create free account
hub / github.com/MengMengCode/GetRealityDomain / Geo

Struct Geo

types.go:43–46  ·  view source on GitHub ↗

Geo 地理位置查询结构体

Source from the content-addressed store, hash-verified

41
42// Geo 地理位置查询结构体
43type Geo struct {
44 geoReader *geoip2.Reader
45 mu sync.Mutex // 保证线程安全
46}
47
48// NewGeo 创建新的地理位置查询实例
49func NewGeo(dbPath string) (*Geo, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected