driver

package
v1.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 13, 2018 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHttpDriver

func NewHttpDriver(rawurl string, parent vmnet.NetDriver) (vmnet.NetDriver, error)

func NewProxyDriver

func NewProxyDriver(rawurl string, parent vmnet.NetDriver) (vmnet.NetDriver, error)

func NewSock5Driver

func NewSock5Driver(rawurl string, parent vmnet.NetDriver) (vmnet.NetDriver, error)

Types

type Dialer

type Dialer interface {
	DialContext(ctx context.Context, network, address string) (net.Conn, error)
	DialWithConn(ctx context.Context, c net.Conn, network, address string) (net.Addr, error)
	Dial(network, address string) (net.Conn, error)
}

type DirectDriver

type DirectDriver struct{}

func (DirectDriver) Dial

func (DirectDriver) Dial(ctx context.Context, network, addr string) (net.Conn, error)

func (DirectDriver) Listen

func (DirectDriver) Listen(ctx context.Context, network, addr string) (net.Listener, error)

func (DirectDriver) Packet

func (DirectDriver) Packet(ctx context.Context, network, address string) (net.PacketConn, error)

type HttpDriver

type HttpDriver struct {
	vmnet.NetDriver
	// contains filtered or unexported fields
}

func (*HttpDriver) Dial

func (h *HttpDriver) Dial(ctx context.Context, network, addr string) (net.Conn, error)

type Sock5Driver

type Sock5Driver struct {
	vmnet.NetDriver
	// contains filtered or unexported fields
}

func (*Sock5Driver) Dial

func (s *Sock5Driver) Dial(ctx context.Context, network, addr string) (net.Conn, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL