Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetInvoiceDownloadURL ¶
GetInvoiceDownloadURL 获取invoice下载地址
func GetInvoiceViewHTML ¶
GetInvoiceViewHTML 处理invoice html生成用于QWebEngine展示的页面
Types ¶
type Invoice ¶
type Invoice struct {
// 账单编号
Number string
// 账单链接
Link string
// 账单开始日期
StartDate time.Time
// 账单结束日期
ExpireDate time.Time
// 支付金额
Payment int64
// 付款状态
State PaymentState
}
Invoice 账单信息
type PaymentState ¶
type PaymentState int
PaymentState 表示账单的付款状态
const ( // NeedPay 未付款 NeedPay PaymentState = iota // FinishedPay 已付款 FinishedPay )
type SSRInfo ¶
type SSRInfo struct {
*Service
// 节点的端口和密码
Port int64
Passwd string
// 可用数据总量
TotalData string
// 已用数据总量
UsedData string
// 下载用量
Download string
// 上传用量
Upload string
// 可用节点信息
Nodes []*SSRNode
}
SSRInfo ssr套餐信息
type SSRNode ¶
type SSRNode struct {
// 节点名字
NodeName string `json:"node_name"`
// 节点类型
Type string `json:"-"`
// 节点IP地址
IP string `json:"server"`
Port int64 `json:"server_port"`
Passwd string `json:"password"`
// 加密算法
Crypto string `json:"method"`
// 连接协议
Proto string `json:"protocol"`
// 混淆算法
Minx string `json:"obfs"`
}
SSRNode ssr节点信息
Click to show internal directories.
Click to hide internal directories.