MCPcopy Index your code
hub / github.com/coder/coder / newSSHServer

Function newSSHServer

cli/ssh_internal_test.go:328–337  ·  view source on GitHub ↗
(addr string)

Source from the content-addressed store, hash-verified

326}
327
328func newSSHServer(addr string) *sshServer {
329 return &sshServer{
330 server: &gliderssh.Server{
331 Addr: addr,
332 Handler: func(s gliderssh.Session) {
333 _, _ = io.WriteString(s.Stderr(), "Connected!")
334 },
335 },
336 }
337}
338
339func (s *sshServer) Serve(ln net.Listener) error {
340 return s.server.Serve(ln)

Callers 1

TestCoderConnectStdioFunction · 0.85

Calls 2

WriteStringMethod · 0.80
StderrMethod · 0.80

Tested by

no test coverage detected