Documentation
¶
Overview ¶
Package proxy provides parser utilities for various VPN proxy URLs (Shadowsocks, VMess, VLESS, Trojan). It has zero heavy dependencies and maps directly to the model.ProxyNode structure.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeIfBase64 ¶ added in v0.1.2
DecodeIfBase64 checks if the input is a base64-encoded proxy URL and decodes it. If the input is already a plaintext proxy URL or cannot be decoded to one, it is returned as is.
Types ¶
type Formatter ¶ added in v0.1.1
type Formatter struct{}
Formatter serializes a model.ProxyNode into a valid proxy URL.
func NewFormatter ¶ added in v0.1.1
func NewFormatter() *Formatter
NewFormatter creates a new Formatter instance.
Click to show internal directories.
Click to hide internal directories.