Documentation ¶
Index ¶
- Variables
- type Local
- func (l *Local) CommandDialContext(ctx context.Context, name string, args ...string) (net.Conn, error)
- func (l *Local) DialContext(ctx context.Context, network, address string) (net.Conn, error)
- func (l *Local) Listen(ctx context.Context, network, address string) (net.Listener, error)
- func (l *Local) ListenPacket(ctx context.Context, network, address string) (permuteproxy.PacketConn, error)
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 (*Local) DialContext ¶
func (*Local) ListenPacket ¶ added in v0.0.2
func (l *Local) ListenPacket(ctx context.Context, network, address string) (permuteproxy.PacketConn, error)
Click to show internal directories.
Click to hide internal directories.