Versions in this module Expand all Collapse all v1 v1.0.0 Jul 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) + Name func() string + type ProxyAdapter interface + Close func() + Conn func() net.Conn + ReadWriter func() io.ReadWriter + type Rule interface + Adapter func() string + IsMatch func(addr *Addr) bool + Payload func() string + RuleType func() RuleType + type RuleType int + const DomainKeyword + const DomainSuffix + const FINAL + const GEOIP + const IPCIDR + func (rt RuleType) String() string + type ServerAdapter interface + Addr func() *Addr + Close func() + Connect func(ProxyAdapter) + 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