geoip

package
v0.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 3, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package geoip 提供本地IP地理查询及原子更新。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Lookup

func Lookup(ip string) (string, string, error)

Lookup 返回国家代码和地理名称;内网地址不查询公网数据库。

func Path

func Path() string

func Update

func Update(ctx context.Context) error

Update 下载并验证新文件,失败时保留当前可用数据库。

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL