Help us shape the future of Go! Take the 2026 Go Developer Survey

ssh

package
v1.14.4 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: GPL-2.0 Imports: 23 Imported by: 18

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewOutbound

func NewOutbound(ctx context.Context, router adapter.Router, logger log.ContextLogger, tag string, options option.SSHOutboundOptions) (adapter.Outbound, error)

func RegisterOutbound

func RegisterOutbound(registry *outbound.Registry)

Types

type Outbound

type Outbound struct {
	outbound.Adapter
	// contains filtered or unexported fields
}

func (*Outbound) CloseIdleConnections added in v1.14.3

func (s *Outbound) CloseIdleConnections()

func (*Outbound) DialContext

func (s *Outbound) DialContext(ctx context.Context, network string, destination M.Socksaddr) (net.Conn, error)

func (*Outbound) InterfaceUpdated

func (s *Outbound) InterfaceUpdated(ctx context.Context)

func (*Outbound) ListenPacket

func (s *Outbound) ListenPacket(ctx context.Context, destination M.Socksaddr) (net.PacketConn, error)

func (*Outbound) MultiplexEnabled added in v1.14.3

func (s *Outbound) MultiplexEnabled() bool

func (*Outbound) SetKeepIdleConnections added in v1.14.3

func (s *Outbound) SetKeepIdleConnections(keep bool)

func (*Outbound) Start added in v1.14.3

func (s *Outbound) Start(stage adapter.StartStage, scope *adapter.Scope) error

Jump to

Keyboard shortcuts

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