v2ray

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2021 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dispatcher

type Dispatcher struct {
	// contains filtered or unexported fields
}

Dispatcher v2ray 功能相关的控制器

func (*Dispatcher) Logs

func (d *Dispatcher) Logs(c *gin.Context)

Logs v2ray 启动后日志输出接口

func (*Dispatcher) Start

func (d *Dispatcher) Start(c *gin.Context)

Start 启动 v2ray 服务

func (*Dispatcher) Status

func (d *Dispatcher) Status(c *gin.Context)

Status 服务器端 v2ray 的状态

func (*Dispatcher) Stop

func (d *Dispatcher) Stop(c *gin.Context)

Stop 关闭 v2ray 服务

type ProtocolParam added in v1.2.0

type ProtocolParam struct {
	Protocol string // 协议名称
	ID       int    // 协议 id

	Address string `json:"address"`
	Port    int    `json:"port"`

	UserID  string
	AlertID int `json:"alertId"`
	// vless 协议参数
	Flow string `json:"flow"`
	// vless 协议参数
	Encryption string `json:"encryption"`
	Level      int    `json:"level"`
	Security   string `json:"security"`
	// socks 协议参数
	User   string `json:"user"`
	Passwd string `json:"passwd"`

	Network     string `json:"network"`
	Domains     string `json:"domains"`
	Path        string `json:"path"`
	NetSecurity string

	ConfigFile string

	// 国内直连
	Direct bool `json:"direct"`
}

ProtocolParam accept parameters pass from network.

type Status

type Status struct {
	ProtoName string
	ID        int
	Running   bool
}

Status v2ray 服务器状态

Jump to

Keyboard shortcuts

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