Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnState ¶
type ConnState int
const ( // ConnStateNew represents a new connection. ConnStateNew ConnState = iota // ConnStateConnected represents a connected connection. ConnStateConnected // ConnStateDisconnected represents a disconnected connection. ConnStateDisconnected // ConnStateError represents an errored connection. ConnStateError ConnStateKeepAlive )
type ConnStateMessage ¶
type SSHConfig ¶
type SSHConfig struct { Host string Port int User string Auth ssh.AuthMethod HostKeyCallback ssh.HostKeyCallback }
type SSHTunnel ¶
type SSHTunnel struct {
// contains filtered or unexported fields
}
func NewSSHTunnel ¶
func (*SSHTunnel) ConnState ¶
func (t *SSHTunnel) ConnState() <-chan ConnStateMessage
type TunnelConfig ¶
TunnelConfig is the configuration for the tunnel.
type TunnelOption ¶
type TunnelOption func(*TunnelConfig)
func WithLogger ¶
func WithLogger(logf func(string, ...any)) TunnelOption
Click to show internal directories.
Click to hide internal directories.