newStdioServerWithIO creates a stdio server with custom IO streams (for testing)
(s *server, stdin io.Reader, stdout io.Writer)
| 125 | |
| 126 | // newStdioServerWithIO creates a stdio server with custom IO streams (for testing) |
| 127 | func newStdioServerWithIO(s *server, stdin io.Reader, stdout io.Writer) *stdioServer { |
| 128 | return &stdioServer{ |
| 129 | server: s, |
| 130 | stdin: stdin, |
| 131 | stdout: stdout, |
| 132 | } |
| 133 | } |
| 134 | |
| 135 | func (ss *stdioServer) Start() error { |
| 136 | log.Info().Msg("Starting stdio mode - reading JSON requests from stdin") |
no outgoing calls