| 28 | } |
| 29 | |
| 30 | type serverImpl struct { |
| 31 | cfg config.SSHConfig |
| 32 | logger log.Logger |
| 33 | handler Handler |
| 34 | listenSocket net.Listener |
| 35 | wg *sync.WaitGroup |
| 36 | lock *sync.Mutex |
| 37 | clientSockets map[*ssh.ServerConn]bool |
| 38 | connMap map[string]connection |
| 39 | nextGlobalRequestID uint64 |
| 40 | nextChannelID uint64 |
| 41 | hostKeys []ssh.Signer |
| 42 | shutdownHandlers *shutdownRegistry |
| 43 | shuttingDown bool |
| 44 | } |
| 45 | |
| 46 | func (s *serverImpl) String() string { |
| 47 | return "SSH server" |
nothing calls this directly
no outgoing calls
no test coverage detected