proxy

package
v1.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 3, 2020 License: MIT Imports: 0 Imported by: 0

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 协议表

func (Shadowsocks) TableName added in v1.5.0

func (Shadowsocks) TableName() string

TableName 表名

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 协议表

func (Socks) TableName added in v1.5.0

func (Socks) TableName() string

TableName 表名

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 用户协议表订阅

func (Subscribe) TableName added in v1.4.0

func (Subscribe) TableName() string

TableName 表名

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 协议表

func (Vless) TableName added in v1.2.0

func (Vless) TableName() string

TableName v2ray的表名

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 协议表

func (Vmess) TableName

func (Vmess) TableName() string

TableName v2ray的表名

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL