proxy

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 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 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"`
	Email      string `xorm:"email"`
	Decryption string `xorm:"decryption default('none')"`

	// fallback
	Alpn         string `xorm:"alpn"`
	FallbackPath string `xorm:"fallback_path"`
	Dest         string `xorm:"dest default('none')"`
	Xver         int    `xorm:"xver"`

	// streamSettings
	Network     string `xorm:"network"`
	NetSecurity string `xorm:"net_security"`
	Path        string `xorm:"path"`
	Domains     string `xorm:"domains"`

	// 国内直连
	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

	// 国内直连
	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