protocols

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2026 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NodeID

func NodeID(n domain.Node) string

func ParseAnyTLS

func ParseAnyTLS(uri string) (domain.Node, error)

func ParseClash

func ParseClash(raw []byte) ([]domain.Node, error)

Clash/Mihomo "proxies:" list

func ParseHysteria

func ParseHysteria(uri string) (domain.Node, error)

func ParseHysteria2

func ParseHysteria2(uri string) (domain.Node, error)

func ParseSOCKS

func ParseSOCKS(uri string) (domain.Node, error)

func ParseShadowTLS

func ParseShadowTLS(uri string) (domain.Node, error)

shadowtls://password@host:port?version=3&sni=example.com#remark

func ParseShadowsocks

func ParseShadowsocks(uri string) (domain.Node, error)

SIP002 ss://base64(method:password)@host:port#remark, or the legacy form

func ParseTUIC

func ParseTUIC(uri string) (domain.Node, error)

func ParseTrojan

func ParseTrojan(uri string) (domain.Node, error)

func ParseVLess

func ParseVLess(uri string) (domain.Node, error)

vless://uuid@host:port?...#remark

func ParseVMess

func ParseVMess(uri string) (domain.Node, error)

vmess://<base64 json>

func ParseWireGuard

func ParseWireGuard(uri string) (domain.Node, error)

wireguard://private-key@host:port?publickey=...&address=10.0.0.2/32#remark

func ParseXray

func ParseXray(raw []byte) ([]domain.Node, error)

func Unbase64

func Unbase64(s string) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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