Versions in this module Expand all Collapse all v0 v0.7.1 Sep 21, 2018 v0.7.0 Sep 16, 2018 v0.6.0 Aug 12, 2018 Changes in this version + var ModeMapping = map[string]Mode + func Init() + type Config struct + func Instance() *Config + func (c *Config) General() General + func (c *Config) Parse() error + func (c *Config) Proxies() map[string]C.Proxy + func (c *Config) Report() chan<- interface{} + func (c *Config) Rules() []C.Rule + func (c *Config) SetLogLevel(level C.LogLevel) + func (c *Config) SetMode(mode Mode) + func (c *Config) Subscribe() observable.Subscription + func (c *Config) UpdateGeneral(general General) + func (c *Config) UpdateProxy(pc ProxyConfig) + func (c *Config) UpdateRules() error + type Event struct + Payload interface{} + Type string + type General struct + AllowLan bool + LogLevel C.LogLevel + Mode Mode + Port int + RedirPort int + SocksPort int + type Mode int + const Direct + const Global + const Rule + func (m Mode) String() string + type ProxyConfig struct + AllowLan *bool + Port *int + RedirPort *int + SocksPort *int