Versions in this module Expand all Collapse all v1 v1.0.11 Jun 28, 2026 v1.0.10 Jun 26, 2026 v1.0.9 Jun 25, 2026 v1.0.8 Jun 24, 2026 v1.0.7 Jun 23, 2026 Changes in this version + const DefaultTemplate + type Clash struct + func NewClash(adapter proxy.Adapter) *Clash + func (c *Clash) Build(uuid string) ([]byte, error) + type GrpcOptions struct + GrpcServiceName string + type HTTP2Options struct + Host []string + Path string + type HTTPOptions struct + Headers map[string][]string + Method string + Path []string + type Proxy struct + ALPN []string + AlterID *int + AuthenticatedLength bool + CWND int + Cipher string + ClientFingerprint string + CongestionController string + CustomCA string + CustomCAString string + DisableMTUDiscovery bool + DisableSni bool + Down string + FastOpen bool + Fingerprint string + Flow string + GlobalPadding bool + GrpcOpts GrpcOptions + HTTP2Opts HTTP2Options + HTTPOpts HTTPOptions + HeartbeatInterval int + HopInterval int + Ip string + MaxDatagramFrameSize int + MaxOpenStreams int + MaxUdpRelayPacketSize int + Name string + Network string + Obfs string + ObfsPassword string + PacketAddr bool + PacketEncoding string + Password string + Plugin string + PluginOpts map[string]any + Port int + Ports string + RealityOpts RealityOptions + ReceiveWindow int + ReceiveWindowConn int + ReduceRtt bool + RequestTimeout int + SNI string + SSOpts TrojanSSOption + Server string + ServerName string + SkipCertVerify bool + TLS bool + Token string + Type string + UDP bool + UDPOverStream bool + UDPOverStreamVersion int + UDPOverTCP bool + UDPOverTCPVersion int + UUID string + UdpMTU int + UdpRelayMode string + Up string + WSHeaders map[string]string + WSOpts WSOptions + WSPath string + XUDP bool + type ProxyGroup struct + Interval int + Name string + Proxies []string + Type string + Url string + type RawConfig struct + AllowLan bool + ExternalController string + LogLevel string + MixedPort int + Mode string + Port int + Proxies []Proxy + ProxyGroups []ProxyGroup + RedirPort int + Rules []string + Secret string + SocksPort int + TProxyPort int + type RealityOptions struct + PublicKey string + ShortID string + type TrojanSSOption struct + Enabled bool + Method string + Password string + type WSOptions struct + EarlyDataHeaderName string + Headers map[string]string + MaxEarlyData int + Path string + V2rayHttpUpgrade bool + V2rayHttpUpgradeFastOpen bool