Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClashSub ¶
func NewClashSub ¶
func (*ClashSub) ToClashConfigYaml ¶
func (*ClashSub) ToGroupedClashConfigYaml ¶
func (*ClashSub) ToRelayConfigs ¶
ToRelayConfigs convert clash sub to relay configs Proxy's port will be used as relay listen port Group's proxies will be merged into load balance in relay a new free port will be used as relay listen port for each group
type Proxies ¶
type Proxies struct {
// basic fields
Name string `yaml:"name"`
Type string `yaml:"type"`
Server string `yaml:"server"`
Port string `yaml:"port"`
Password string `yaml:"password,omitempty"`
UDP bool `yaml:"udp,omitempty"`
// for shadowsocks todo(support opts)
Cipher string `yaml:"cipher,omitempty"`
// for trojan todo(support opts)
ALPN []string `yaml:"alpn,omitempty"`
SkipCertVerify bool `yaml:"skip-cert-verify,omitempty"`
SNI string `yaml:"sni,omitempty"`
Network string `yaml:"network,omitempty"`
// for socks5 todo(support opts)
UserName string `yaml:"username,omitempty"`
TLS bool `yaml:"tls,omitempty"`
// for vmess todo(support opts)
UUID string `yaml:"uuid,omitempty"`
AlterID int `yaml:"alterId,omitempty"`
ServerName string `yaml:"servername,omitempty"`
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.