params

package
v0.0.0-...-c06942e Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: GPL-3.0 Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommonNodeParams

type CommonNodeParams struct {
	Name          string
	Host          string
	Port          string
	ProxyProtocol bool
	TCPFastOpen   bool
	EnableDNS     bool
	Rules         []string
	Limit         LimitOptions
	ExpandParams
}

type ExpandParams

type ExpandParams struct {
	OtherOptions map[string]any
	CustomData   []byte
}

type HysteriaNode

type HysteriaNode struct {
	CommonNodeParams
	UpMbps   int
	DownMbps int
	Obfs     string
}

type LimitOptions

type LimitOptions struct {
	SpeedLimit int `json:"SpeedLimit"`
	IPLimit    int `json:"DeviceLimit"`
	ConnLimit  int `json:"ConnLimit"`
}

type NodeInfo

type NodeInfo struct {
	Type        string
	VMess       *VMessNode
	VLess       *VLessNode
	Shadowsocks *ShadowsocksNode
	Trojan      *TrojanNode
	Hysteria    *HysteriaNode
	Other       *OtherNode
	ExpandParams
}

func (*NodeInfo) String

func (n *NodeInfo) String() string

type OtherNode

type OtherNode struct {
	Name    string
	TlsType int
	CommonNodeParams
}

type RealityConfig

type RealityConfig struct {
	Xver         uint64 `json:"Xver"`
	MinClientVer string `json:"MinClientVer"`
	MaxClientVer string `json:"MaxClientVer"`
	MaxTimeDiff  string `json:"MaxTimeDiff"`
}

type ShadowsocksNode

type ShadowsocksNode struct {
	CommonNodeParams
	Cipher    string `json:"cipher"`
	ServerKey string `json:"server_key"`
}

type TlsSettings

type TlsSettings struct {
	ServerName string
	ServerPort string
	ShortId    string
	PrivateKey string
}

type TrojanNode

type TrojanNode CommonNodeParams

type UserInfo

type UserInfo struct {
	Id   int
	Name string
	Key  []string
	ExpandParams
}

type VLessNode

type VLessNode struct {
	CommonNodeParams
	TlsType         int
	Flow            string
	Network         string
	ServerName      string
	RealityConfig   RealityConfig
	TlsSettings     TlsSettings
	NetworkSettings json.RawMessage
}

VLessNode is vless node info

type VMessNode

type VMessNode struct {
	CommonNodeParams
	TlsType         int
	Network         string
	ServerName      string
	TlsSettings     TlsSettings
	NetworkSettings json.RawMessage
}

VMessNode is vmess node info

Jump to

Keyboard shortcuts

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