Versions in this module Expand all Collapse all v0 v0.4.0 Jun 18, 2018 Changes in this version type Proxy + Name func() string + type Traffic struct + func NewTraffic(interval time.Duration) *Traffic + func (t *Traffic) Down() chan<- int64 + func (t *Traffic) Now() (up int64, down int64) + func (t *Traffic) Up() chan<- int64 v0.3.2 Jun 15, 2018 Changes in this version + const AtypDomainName + const AtypIPv4 + const AtypIPv6 + const DefalutHTTPPort + const DefalutSOCKSPort + const Name + const TCP + const UDP + var ConfigPath string + var HomeDir string + var MMDBPath string + func GetConfig() (*ini.File, error) + type Addr struct + AddrType int + Host string + IP *net.IP + NetWork NetWork + Port string + func (addr *Addr) String() string + type NetWork int + func (n *NetWork) String() string + type Proxy interface + Generator func(addr *Addr) (ProxyAdapter, error) + type ProxyAdapter interface + Close func() + Conn func() net.Conn + ReadWriter func() io.ReadWriter + type Rule interface + Adapter func() string + IsMatch func(addr *Addr) bool + RuleType func() RuleType + type RuleType int + const DomainKeyword + const DomainSuffix + const FINAL + const GEOIP + const IPCIDR + type ServerAdapter interface + Addr func() *Addr + Close func() + Connect func(ProxyAdapter)