Documentation ¶
Index ¶
- func LayerCBDialer(cb DialLayerCallback, d transport.Dialer) transport.Dialer
- func LayerDeltaCBDialer(cb DialLayerCallback, dialer transport.Dialer, ...) (transport.DialerFunc, error)
- type DialLayerCallback
- type DialerChain
- func (c *DialerChain) AddLayer(l Layer)
- func (c *DialerChain) Build() (d transport.Dialer, err error)
- func (c *DialerChain) BuildWith(makeCB func(string) DialLayerCallback) (d transport.Dialer, err error)
- func (c *DialerChain) BuildWithMeasures(event common.MapStr) (transport.Dialer, error)
- func (c *DialerChain) Clone() *DialerChain
- func (c *DialerChain) Dial(network, host string) (conn net.Conn, err error)
- func (c *DialerChain) DialWithMeasurements(network, host string) (fields common.MapStr, conn net.Conn, err error)
- func (c *DialerChain) TestBuild() error
- type Layer
- type MeasureCallback
- type MeasureLayerRTTCB
- type NetDialer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LayerCBDialer ¶
func LayerCBDialer(cb DialLayerCallback, d transport.Dialer) transport.Dialer
func LayerDeltaCBDialer ¶
Types ¶
type DialLayerCallback ¶
type DialLayerCallback interface { Start() Done(err error) }
type DialerChain ¶
func (*DialerChain) AddLayer ¶
func (c *DialerChain) AddLayer(l Layer)
func (*DialerChain) BuildWith ¶
func (c *DialerChain) BuildWith(makeCB func(string) DialLayerCallback) (d transport.Dialer, err error)
func (*DialerChain) BuildWithMeasures ¶
func (*DialerChain) Clone ¶
func (c *DialerChain) Clone() *DialerChain
func (*DialerChain) Dial ¶
func (c *DialerChain) Dial(network, host string) (conn net.Conn, err error)
func (*DialerChain) DialWithMeasurements ¶
func (*DialerChain) TestBuild ¶
func (c *DialerChain) TestBuild() error
type Layer ¶
func ConstAddrLayer ¶
func SOCKS5Layer ¶
func SOCKS5Layer(name string, config *transport.ProxyConfig) Layer
type MeasureCallback ¶
type MeasureLayerRTTCB ¶
type MeasureLayerRTTCB struct { Callback MeasureCallback // contains filtered or unexported fields }
func (*MeasureLayerRTTCB) Done ¶
func (cb *MeasureLayerRTTCB) Done(_ error)
func (*MeasureLayerRTTCB) Start ¶
func (cb *MeasureLayerRTTCB) Start()
Click to show internal directories.
Click to hide internal directories.