Versions in this module Expand all Collapse all v1 v1.261109.0 Nov 9, 2026 v1.261031.0 Nov 1, 2026 v1.261029.0 Oct 29, 2026 v1.261021.0 Oct 21, 2026 v1.261017.0 Oct 18, 2026 Changes in this version + func DecodeSubscriptionText(text, secretKey string) (string, error) v1.261010.0 Oct 11, 2026 v1.260930.0 Sep 30, 2026 v1.260909.0 Sep 9, 2026 Changes in this version + var ErrAgeArmorMalformed = errors.New("malformed age armor") + var ErrAgeDecryptFailed = errors.New("unable to decrypt age subscription") + var ErrAgeKeyTypeUnsupported = errors.New("unsupported age key type") + var ErrAgePlaintextTooLarge = errors.New("decrypted subscription exceeds the 16 MiB size limit") + var ErrAgePlaintextUnsupported = errors.New("decrypted subscription is unsupported") + var ErrAgeSecretKeyInvalid = errors.New("invalid or unsupported age secret key") + var ErrAgeSecretKeyMissing = errors.New("missing age secret key") + type AgeKeyPair struct + PublicKey string + SecretKey string + func GenerateAgeKeyPair(keyType AgeKeyType) (*AgeKeyPair, error) + type AgeKeyType string + const AgeKeyTypeHybrid + const AgeKeyTypeX25519 v1.260728.0 Jul 29, 2026 v1.260711.0 Jul 12, 2026 v1.260627.0 Jun 27, 2026 v1.260601.0 Jun 19, 2026 Changes in this version + func ConvertShareLinksToXrayJson(links string) (*conf.Config, error) + func ConvertXrayJsonToShareLinks(xrayBytes []byte) (string, error) + func FixWindowsReturn(text string) string + type ClashProxy struct + Alpn []string + Cipher string + ClientFingerprint string + Down string + EchOpts *ClashProxyEchOpts + Encryption string + Fingerprint string + Flow string + GrpcOpts *ClashProxyGrpcOpts + HopInterval int32 + Name string + Network string + Obfs string + ObfsPassword string + Password string + Plugin string + PluginOpts *ClashProxyPluginOpts + Port uint16 + Ports string + RealityOpts *ClashProxyRealityOpts + Server string + Servername string + SkipCertVerify bool + Sni string + Tls bool + Type string + Udp bool + UdpOverTcp bool + Up string + Username string + Uuid string + WsOpts *ClashProxyWsOpts + XhttpOpts *ClashProxyXhttpOpts + type ClashProxyEchOpts struct + Config string + Enable bool + type ClashProxyGrpcOpts struct + GrpcServiceName string + type ClashProxyPluginOpts struct + EchOpts *ClashProxyEchOpts + Fingerprint string + Host string + Mode string + Mux bool + Path string + SkipCertVerify bool + Tls bool + type ClashProxyRealityOpts struct + PublicKey string + ShortId string + type ClashProxyWsOpts struct + Headers *ClashProxyWsOptsHeaders + Path string + type ClashProxyWsOptsHeaders struct + Host string + type ClashProxyXhttpOpts struct + DownloadSettings *ClashProxyXhttpOptsDownloadSettings + Headers map[string]string + Host string + Mode string + NoGrpcHeader bool + Path string + ReuseSettings *ClashProxyXhttpOptsXMUX + ScMaxEachPostBytes string + XPaddingBytes string + type ClashProxyXhttpOptsDownloadSettings struct + Alpn []string + ClientFingerprint string + EchOpts *ClashProxyEchOpts + Fingerprint string + Headers map[string]string + Host string + Mode string + NoGrpcHeader bool + Path string + Port uint16 + RealityOpts *ClashProxyRealityOpts + ReuseSettings *ClashProxyXhttpOptsXMUX + ScMaxEachPostBytes string + Server string + Servername string + SkipCertVerify bool + Tls bool + XPaddingBytes string + type ClashProxyXhttpOptsXMUX struct + CMaxReuseTimes string + HMaxRequestTimes string + HMaxReusableSecs string + MaxConcurrency string + MaxConnections string + type ClashYaml struct + Proxies []ClashProxy + type XrayFakeHeader struct + Type string + type XrayRawSettingsHeader struct + Request *XrayRawSettingsHeaderRequest + Type string + type XrayRawSettingsHeaderRequest struct + Headers *XrayRawSettingsHeaderRequestHeaders + Path []string + type XrayRawSettingsHeaderRequestHeaders struct + Host []string