Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckIfConfigValid ¶
Types ¶
type ClashRawConfig ¶
type ClashRawConfig struct { Port int `yaml:"port"` SocksPort int `yaml:"socks-port"` RedirPort int `yaml:"redir-port,omitempty"` TProxyPort int `yaml:"tproxy-port,omitempty"` MixedPort int `yaml:"mixed-port,omitempty"` Authentication []string `yaml:"authentication,omitempty"` AllowLan bool `yaml:"allow-lan"` BindAddress string `yaml:"bind-address,omitempty"` Mode clashT.TunnelMode `yaml:"mode"` LogLevel clashLog.LogLevel `yaml:"log-level"` IPv6 bool `yaml:"ipv6,omitempty"` ExternalController string `yaml:"external-controller"` ExternalUI string `yaml:"external-ui,omitempty"` Secret string `yaml:"secret,omitempty"` Interface string `yaml:"interface-name,omitempty"` RoutingMark int `yaml:"routing-mark,omitempty"` ProxyProvider map[string]map[string]any `yaml:"proxy-providers,omitempty"` Hosts map[string]string `yaml:"hosts,omitempty"` DNS clashConfig.RawDNS `yaml:"dns,omitempty"` Experimental clashConfig.Experimental `yaml:"experimental,omitempty"` Profile clashConfig.Profile `yaml:"profile,omitempty"` Proxy []map[string]any `yaml:"proxies"` ProxyGroup []map[string]any `yaml:"proxy-groups"` Rule []string `yaml:"rules"` Tun *TunConfig `yaml:"tun,omitempty"` }
func UnmarshalClashRawConfig ¶
func UnmarshalClashRawConfig(buf []byte) (*ClashRawConfig, error)
Click to show internal directories.
Click to hide internal directories.