local

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2023 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LOCAL = &Local{
	Dialer:             &net.Dialer{},
	ListenConfig:       &net.ListenConfig{},
	ListenPacketConfig: &net.ListenConfig{},
	CommandDialer: permuteproxy.CommandDialFunc(func(ctx context.Context, name string, args ...string) (net.Conn, error) {
		proxy := commandproxy.ProxyCommand(ctx, name, args...)

		return proxy.Stdio()
	}),
	LocalAddr: netutils.NewNetAddr("local", "local"),
}

Functions

This section is empty.

Types

type Local

type Local struct {
	Dialer             permuteproxy.Dialer
	ListenConfig       permuteproxy.ListenConfig
	ListenPacketConfig permuteproxy.ListenPacketConfig
	CommandDialer      permuteproxy.CommandDialer
	LocalAddr          net.Addr
}

func (*Local) CommandDialContext added in v0.0.2

func (l *Local) CommandDialContext(ctx context.Context, name string, args ...string) (net.Conn, error)

func (*Local) DialContext

func (l *Local) DialContext(ctx context.Context, network, address string) (net.Conn, error)

func (*Local) Listen

func (l *Local) Listen(ctx context.Context, network, address string) (net.Listener, error)

func (*Local) ListenPacket added in v0.0.2

func (l *Local) ListenPacket(ctx context.Context, network, address string) (permuteproxy.PacketConn, error)

Jump to

Keyboard shortcuts

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