Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Port uint `yaml:"port"` SocksPort uint `yaml:"socks-port"` Mode string `yaml:"mode"` LogLevel string `yaml:"log-level"` Proxies []ProxyConfig `yaml:"proxies"` ProxyGroups []ProxyGroupConfig `yaml:"proxy-groups"` RuleProviders map[string]RuleProvider `yaml:"rule-providers"` Rules []string `yaml:"rules"` }
type ProxyConfig ¶
type ProxyGroupConfig ¶
type ProxyGroupConfig struct { Name string `yaml:"name"` Type string `yaml:"type"` Proxies []string `yaml:"proxies"` }
func NewProxyGroup ¶
func NewProxyGroup(n, t string) ProxyGroupConfig
Click to show internal directories.
Click to hide internal directories.