1 Star 1 Fork 1

坐公交也用券/gns

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
.idea
eth
eth_test
ip
tools
.gitignore
LICENSE
README.md
UpgraeMod.py
gitee.py
gns.go
gns_test.go
go.mod
go.sum
merge.py
new.go
ping.go
ping_test.go
pings.go
pings_test.go
releases.py
struct.go
version.go
克隆/下载
struct.go 1.12 KB
一键复制 编辑 原始数据 按行查看 历史
坐公交也用券 提交于 4个月前 . 分类目录
package gns
import "net/http"
// Info 定义GNS结构体
type Info struct {
debug bool // 是否开启调试信息打印(默认: false)
https bool // 是否使用https(默认: false)
agreement string // 设置使用的协议(TCP/UDP),默认: TCP
port int // 使用的端口(默认: 80)
code int // HTTP请求代码(默认: 200)
request string // 使用的请求方式(默认: GET)
Timeout int // 超时设置(默认: 5秒)
pingCount int // 设置Ping包数量(默认: 5)
UseTxt, NotUsed string // 使用/没使用的ip清单
Req *http.Request // 请求实例
Resp *http.Response // 响应实例
Client *http.Client // 客户端实例
Err error // 错误
}
type PingCmd struct {
timeout int // 超时设置(默认: 5秒)
pingCount int // 设置Ping包数量(默认: 5)
host string // 主机地址
Realtime bool // 是否开启实时刷新
ExitStatus bool // 是否打印每次退出代码
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/liumou_site/gns.git
git@gitee.com:liumou_site/gns.git
liumou_site
gns
gns
master

搜索帮助