package
Version:
v1.0.1
Opens a new window with list of versions in this module.
Published: Nov 8, 2024
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
const (
CodeSuccess = 200
CodeNotFound = 404
CodeInternalError = 500
)
响应码定义
type ProxyData struct {
IP string `json:"ip"`
Port string `json:"port"`
Type string `json:"type"`
Anonymous bool `json:"anonymous"`
Speed int64 `json:"speed_ms"`
Score int `json:"score"`
}
ProxyData 代理数据结构
type Response struct {
Code int `json:"code"`
Message string `json:"message"`
Data interface{} `json:"data,omitempty"`
}
Response 通用响应结构
Source Files
¶
Click to show internal directories.
Click to hide internal directories.