39 Star 124 Fork 23

freshcn / qqwry

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
consts.go 677 Bytes
一键复制 编辑 Web IDE 原始数据 按行查看 历史
freshcn 提交于 2017-02-18 16:00 . 规范代码
package main
import (
"net/http"
"os"
)
const (
// IndexLen 索引长度
IndexLen = 7
// RedirectMode1 国家的类型, 指向另一个指向
RedirectMode1 = 0x01
// RedirectMode2 国家的类型, 指向一个指向
RedirectMode2 = 0x02
)
// ResultQQwry 归属地信息
type ResultQQwry struct {
IP string `json:"ip"`
Country string `json:"country"`
Area string `json:"area"`
}
type fileData struct {
Data []byte
FilePath string
Path *os.File
IPNum int64
}
// QQwry 纯真ip库
type QQwry struct {
Data *fileData
Offset int64
}
// Response 向客户端返回数据的
type Response struct {
r *http.Request
w http.ResponseWriter
}
Go
1
https://gitee.com/freshcn/qqwry.git
git@gitee.com:freshcn/qqwry.git
freshcn
qqwry
qqwry
master

搜索帮助

14c37bed 8189591 565d56ea 8189591