net

package
v1.2.11 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2020 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RequestSubscription

func RequestSubscription(url string) (result []*data.Outbound, e error)

RequestSubscription .

Types

type Outbound

type Outbound struct {

	// 給人類看的 名稱
	Name string `json:"ps,omitempty"`

	// 連接地址
	Add string `json:"add,omitempty"`
	// 連接端口
	Port string `json:"port,omitempty"`
	// 連接主機名
	Host string `json:"host,omitempty"`

	// 加密方案
	TLS string `json:"tls,omitempty"`

	// 使用的網路協議
	Net string `json:"net,omitempty"`

	// websocket 請求路徑
	Path string `json:"path,omitempty"`

	// 用戶身份識別碼
	UserID string `json:"id,omitempty"`
	// 另外一個可選的用戶id
	AlterID string `json:"aid,omitempty"`
	// Security 加密方式
	Security string `json:"type,omitempty"`
	// 用戶等級
	Level string `json:"v,omitempty"`
}

Outbound 可用的 出棧 配置

func AnalyzeString added in v1.2.2

func AnalyzeString(str string) (protocol string, result *Outbound)

AnalyzeString 分享 鏈接

Jump to

Keyboard shortcuts

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