Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Shadowsocks ¶ added in v1.5.0
type Shadowsocks struct {
ID uint64 `xorm:"pk autoincr 'id' BIGINT"`
// 用户 id,用于区分是哪个用户的协议。
UID uint64 `xorm:"notnull 'user_id' BIGINT"`
// 别名
Name string `xorm:"'name' VARCHAR(255)"`
Protocol string `xorm:"notnull comment('协议名称') default('shadowsocks') 'protocol' VARCHAR(255)"`
Address string `xorm:"'address' VARCHAR(255)"`
Port int `xorm:"'port' INT"`
// 用户配置
Passwd string `xorm:"'passwd'"`
Security string `xorm:"security"`
// 完整配置文件
ConfigFile string `xorm:"'cnf' notnull"`
// 国内直连
Direct bool `xorm:"direct default('false')"`
}
Shadowsocks shadowsocks 协议表
type Socks ¶ added in v1.5.0
type Socks struct {
ID uint64 `xorm:"pk autoincr 'id' BIGINT"`
// 用户 id,用于区分是哪个用户的协议。
UID uint64 `xorm:"notnull 'user_id' BIGINT"`
// 别名
Name string `xorm:"'name' VARCHAR(255)"`
Protocol string `xorm:"notnull comment('协议名称') default('socks') 'protocol' VARCHAR(255)"`
Address string `xorm:"'address' VARCHAR(255)"`
Port int `xorm:"'port' INT"`
// 用户配置
User string `xorm:"'user'"`
Passwd string `xorm:"'passwd'"`
// 完整配置文件
ConfigFile string `xorm:"'cnf' notnull"`
// 国内直连
Direct bool `xorm:"direct default('false')"`
}
Socks socks 协议表
type Subscribe ¶ added in v1.4.0
type Subscribe struct {
ID uint64 `xorm:"pk autoincr 'id' BIGINT"`
// 用户 id,用于区分是哪个用户的订阅地址。
UID uint64 `xorm:"notnull 'user_id' BIGINT"`
// 订阅地址别名
Name string `xorm:"name"`
URL string `xorm:"'url'"` // 订阅地址
}
Subscribe 用户协议表订阅
type Vless ¶ added in v1.2.0
type Vless struct {
ID uint64 `xorm:"pk autoincr 'id' BIGINT"`
// 用户 id,用于区分是哪个用户的协议。
UID uint64 `xorm:"notnull 'user_id' BIGINT"`
// 别名
Name string `xorm:"'name' VARCHAR(255)"`
Protocol string `xorm:"notnull comment('协议名称') default('vless') 'protocol' VARCHAR(255)"`
Address string `xorm:"'address' VARCHAR(255)"`
Port int `xorm:"'port' INT"`
// settings vnext users
UserID string `xorm:"userId"`
// Flow string `xorm:"'flow'"`
Encryption string `xorm:"encryption default('none')"`
Level int `xorm:"level"`
// streamSettings
Network string `xorm:"network"`
NetSecurity string `xorm:"net_security"`
Path string `xorm:"path"`
Domains string `xorm:"domains"`
// 完整配置文件
ConfigFile string `xorm:"'cnf' notnull"`
// 国内直连
Direct bool `xorm:"direct default('false')"`
}
Vless vless 协议表
type Vmess ¶
type Vmess struct {
ID uint64 `xorm:"pk autoincr 'id' BIGINT"`
// 用户 id,用于区分是哪个用户的协议。
UID uint64 `xorm:"notnull 'user_id' BIGINT"`
Name string `xorm:"'name' VARCHAR(255)"`
Protocol string `xorm:"notnull comment('协议名称') default('vmess') 'protocol' VARCHAR(255)"`
Address string `xorm:"'address' VARCHAR(255)"`
Port int `xorm:"'port' INT"`
// settings vnext users
UserID string `xorm:"userId"`
AlertID int `xorm:"'alertId'"`
Security string `xorm:"security"`
Level int `xorm:"level"`
// streamSettings
Network string `xorm:"network"`
NetSecurity string `xorm:"net_security"`
Path string `xorm:"path"`
Domains string
// 完整配置文件
ConfigFile string `xorm:"'cnf' notnull"`
// 国内直连
Direct bool `xorm:"direct default('false')"`
}
Vmess vmess 协议表
Click to show internal directories.
Click to hide internal directories.