| 107 | } |
| 108 | |
| 109 | type session struct { |
| 110 | sync.Mutex |
| 111 | gossh.Channel |
| 112 | conn *gossh.ServerConn |
| 113 | handler Handler |
| 114 | subsystemHandlers map[string]SubsystemHandler |
| 115 | handled bool |
| 116 | exited bool |
| 117 | pty *Pty |
| 118 | winch chan Window |
| 119 | env []string |
| 120 | ptyCb PtyCallback |
| 121 | sessReqCb SessionRequestCallback |
| 122 | rawCmd string |
| 123 | subsystem string |
| 124 | ctx Context |
| 125 | sigCh chan<- Signal |
| 126 | sigBuf []Signal |
| 127 | breakCh chan<- bool |
| 128 | } |
| 129 | |
| 130 | func (sess *session) Write(p []byte) (n int, err error) { |
| 131 | if sess.pty != nil { |
nothing calls this directly
no outgoing calls
no test coverage detected