Versions in this module Expand all Collapse all v0 v0.2.1 Jul 10, 2026 v0.2.0 Jul 5, 2026 Changes in this version + const DefaultListenAddress + const DefaultSingBoxConfigPath + const DefaultXrayConfigPath + const SubscriptionFormatBase64 + const SubscriptionFormatClash + const SubscriptionFormatClashMeta + const SubscriptionFormatPlain + const SubscriptionFormatSingBox + func Base64Subscription(links []string) []byte + func ClashMetaSubscription(endpoints []VLESSRealityEndpoint) []byte + func GenerateRealityKeypair() (privateKey, publicKey string, err error) + func GenerateRealityShortID(n int) (string, error) + func PlainSubscription(links []string) []byte + func RealityPublicKeyFromPrivate(privateKey string) (string, error) + func RenderSingBoxConfig(profile model.ProxyNodeProfile, inbounds []model.ProxyInbound, ...) (singBoxConfig, []string, error) + func RenderXrayConfig(profile model.ProxyNodeProfile, inbounds []model.ProxyInbound, ...) (xrayConfig, []string, error) + func SingBoxClientSubscription(endpoints []VLESSRealityEndpoint) ([]byte, error) + func SubscriptionUserinfo(user model.ProxyUser) string + func VLESSRealityLinks(user model.ProxyUser, profiles []SubscriptionProfile, ...) ([]string, []string, error) + type Artifact struct + ConfigJSON string + ConfigPath string + ConfigSHA256 string + Core string + Warnings []string + func RenderXrayConfigJSON(profile model.ProxyNodeProfile, inbounds []model.ProxyInbound, ...) (Artifact, error) + type RenderOptions struct + Now time.Time + type SingBoxArtifact = Artifact + func RenderSingBoxConfigJSON(profile model.ProxyNodeProfile, inbounds []model.ProxyInbound, ...) (SingBoxArtifact, error) + type SubscriptionOptions struct + Now time.Time + type SubscriptionProfile struct + NodeName string + Profile model.ProxyNodeProfile + type VLESSRealityEndpoint struct + ALPN []string + Fingerprint string + Flow string + InboundID string + Label string + Network string + NodeID string + PublicKey string + SNI string + Server string + ServerPort int + ShortID string + Tag string + UUID string + func VLESSRealityEndpoints(user model.ProxyUser, profiles []SubscriptionProfile, ...) ([]VLESSRealityEndpoint, []string, error) + func (e VLESSRealityEndpoint) Link() string