Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BridgeFunc ¶
BridgeFunc type is an adapter for Bridger.
type Bridger ¶
type Bridger interface {
Bridge(ctx context.Context, dialer Dialer, address string) (Dialer, error)
}
Bridger contains options for crossing a bridge address.
type CommandDialFunc ¶ added in v0.2.0
CommandDialFunc type is an adapter for Dialer with command.
func (CommandDialFunc) CommandDialContext ¶ added in v0.2.0
func (d CommandDialFunc) CommandDialContext(ctx context.Context, name string, args ...string) (net.Conn, error)
CommandDialContext calls d(ctx, name, args...)
type CommandDialer ¶ added in v0.2.0
type CommandDialer interface {
CommandDialContext(ctx context.Context, name string, args ...string) (net.Conn, error)
}
CommandDialer contains options for connecting to an address with command.
type CommandListenConfig ¶ added in v0.6.8
type CommandListenConfig interface {
CommandListen(ctx context.Context, name string, args ...string) (net.Listener, error)
}
CommandListenConfig contains options for listening to an address with command.
type CommandListenConfigFunc ¶ added in v0.6.8
type CommandListenConfigFunc func(ctx context.Context, name string, args ...string) (net.Listener, error)
CommandListenConfigFunc type is an adapter for ListenConfig with command.
func (CommandListenConfigFunc) CommandListen ¶ added in v0.6.8
func (l CommandListenConfigFunc) CommandListen(ctx context.Context, name string, args ...string) (net.Listener, error)
CommandListen calls b(ctx, network, address)
type Dialer ¶
type Dialer interface {
DialContext(ctx context.Context, network, address string) (net.Conn, error)
}
Dialer contains options for connecting to an address.
type ListenConfig ¶
type ListenConfig interface {
Listen(ctx context.Context, network, address string) (net.Listener, error)
}
ListenConfig contains options for listening to an address.
type ListenConfigFunc ¶
ListenConfigFunc type is an adapter for ListenConfig.