MCPcopy
hub / github.com/wavetermdev/waveterm / SSHConn

Struct SSHConn

pkg/remote/conncontroller/conncontroller.go:76–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74var activeConnCounter = &atomic.Int32{}
75
76type SSHConn struct {
77 lock *sync.Mutex // this lock protects the fields in the struct from concurrent access
78 lifecycleLock *sync.Mutex // this protects the lifecycle from concurrent calls
79
80 Status string
81 ConnHealthStatus string
82 WshEnabled *atomic.Bool
83 Opts *remote.SSHOpts
84 Client *ssh.Client
85 DomainSockName string // if "", then no domain socket
86 DomainSockListener net.Listener
87 ConnController *ssh.Session
88 Error string
89 WshError string
90 NoWshReason string
91 WshVersion string
92 LastConnectTime int64
93 ActiveConnNum int
94 Monitor *ConnMonitor // will not be nil
95}
96
97var ConnServerCmdTemplate = strings.TrimSpace(
98 strings.Join([]string{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected