Versions in this module Expand all Collapse all v1 v1.0.0 Jul 15, 2018 Changes in this version + type Direct struct + func NewDirect(traffic *C.Traffic) *Direct + func (d *Direct) Generator(addr *C.Addr) (adapter C.ProxyAdapter, err error) + func (d *Direct) Name() string + type DirectAdapter struct + func (d *DirectAdapter) Close() + func (d *DirectAdapter) Conn() net.Conn + func (d *DirectAdapter) ReadWriter() io.ReadWriter + type NopRW struct + func (rw *NopRW) Read(b []byte) (int, error) + func (rw *NopRW) Write(b []byte) (int, error) + type Reject struct + func NewReject() *Reject + func (r *Reject) Generator(addr *C.Addr) (adapter C.ProxyAdapter, err error) + func (r *Reject) Name() string + type RejectAdapter struct + func (r *RejectAdapter) Close() + func (r *RejectAdapter) Conn() net.Conn + func (r *RejectAdapter) ReadWriter() io.ReadWriter + type ShadowSocks struct + func NewShadowSocks(name string, ssURL string, traffic *C.Traffic) (*ShadowSocks, error) + func (ss *ShadowSocks) Generator(addr *C.Addr) (adapter C.ProxyAdapter, err error) + func (ss *ShadowSocks) Name() string + type ShadowsocksAdapter struct + func (ss *ShadowsocksAdapter) Close() + func (ss *ShadowsocksAdapter) Conn() net.Conn + func (ss *ShadowsocksAdapter) ReadWriter() io.ReadWriter + type TrafficTrack struct + func NewTrafficTrack(conn net.Conn, traffic *C.Traffic) *TrafficTrack + func (tt *TrafficTrack) Read(b []byte) (int, error) + func (tt *TrafficTrack) Write(b []byte) (int, error) + type URLTest struct + func NewURLTest(name string, proxys []C.Proxy, rawURL string, delay time.Duration) (*URLTest, error) + func (u *URLTest) Close() + func (u *URLTest) Generator(addr *C.Addr) (adapter C.ProxyAdapter, err error) + func (u *URLTest) Name() string