ssh

package
v1.15.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2026 License: GPL-2.0 Imports: 23 Imported by: 8

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) Close

func (s *Outbound) Close() error

func (*Outbound) CloseIdleConnections

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) SetKeepIdleConnections

func (s *Outbound) SetKeepIdleConnections(keep bool)

Jump to

Keyboard shortcuts

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