Documentation ¶
Index ¶
- type VirtualNetwork
- func (n *VirtualNetwork) AcceptBess(ctx context.Context, conn net.Conn) error
- func (n *VirtualNetwork) AcceptQemu(ctx context.Context, conn net.Conn) error
- func (n *VirtualNetwork) AcceptStdio(ctx context.Context, conn net.Conn) error
- func (n *VirtualNetwork) AcceptVfkit(ctx context.Context, conn net.Conn) error
- func (n *VirtualNetwork) AcceptVpnKit(conn net.Conn) error
- func (n *VirtualNetwork) BytesReceived() uint64
- func (n *VirtualNetwork) BytesSent() uint64
- func (n *VirtualNetwork) Dial(network, addr string) (net.Conn, error)
- func (n *VirtualNetwork) DialContextTCP(ctx context.Context, addr string) (net.Conn, error)
- func (n *VirtualNetwork) Listen(network, addr string) (net.Listener, error)
- func (n *VirtualNetwork) Mux() *http.ServeMux
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type VirtualNetwork ¶
type VirtualNetwork struct {
// contains filtered or unexported fields
}
func New ¶
func New(configuration *types.Configuration) (*VirtualNetwork, error)
func (*VirtualNetwork) AcceptBess ¶ added in v0.4.0
func (*VirtualNetwork) AcceptQemu ¶
func (*VirtualNetwork) AcceptStdio ¶ added in v0.6.1
func (*VirtualNetwork) AcceptVfkit ¶ added in v0.6.2
func (*VirtualNetwork) AcceptVpnKit ¶
func (n *VirtualNetwork) AcceptVpnKit(conn net.Conn) error
func (*VirtualNetwork) BytesReceived ¶
func (n *VirtualNetwork) BytesReceived() uint64
func (*VirtualNetwork) BytesSent ¶
func (n *VirtualNetwork) BytesSent() uint64
func (*VirtualNetwork) DialContextTCP ¶ added in v0.3.0
func (*VirtualNetwork) Listen ¶
func (n *VirtualNetwork) Listen(network, addr string) (net.Listener, error)
func (*VirtualNetwork) Mux ¶
func (n *VirtualNetwork) Mux() *http.ServeMux
Click to show internal directories.
Click to hide internal directories.