Documentation
¶
Index ¶
- func DecodeBase64(s string) string
- func IsBase64String(s string) bool
- func ParseHysteria2(data string) (map[string]any, error)
- func ParseShadowsocks(data string) (map[string]any, error)
- func ParseSsr(data string) (map[string]any, error)
- func ParseTrojan(data string) (map[string]any, error)
- func ParseVless(data string) (map[string]any, error)
- func ParseVmess(data string) (map[string]any, error)
- type VmessJson
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeBase64 ¶
DecodeBase64 解码 base64 字符串,如果不是 base64 则返回原始字符串
func ParseShadowsocks ¶
将ss格式的节点转换为clash格式
Types ¶
type VmessJson ¶
type VmessJson struct { V any `json:"v"` Ps string `json:"ps"` Add string `json:"add"` Port any `json:"port"` Id string `json:"id"` Aid any `json:"aid"` Scy string `json:"scy"` Net string `json:"net"` Type string `json:"type"` Host string `json:"host"` Path string `json:"path"` Tls string `json:"tls"` Sni string `json:"sni"` Alpn string `json:"alpn"` Fp string `json:"fp"` }
Click to show internal directories.
Click to hide internal directories.