Documentation ¶
Index ¶
- func ExecReaderToChannel(r io.Reader, bufferSize int, exited <-chan struct{}, fd int) <-chan []byte
- func GetPollRevents(fd int, timeout int, flags int) (int, int, error)
- func MirrorToWebsocket(conn MessageWriter, r io.ReadCloser, exited chan struct{}, fd int)
- func ReaderToChannel(r io.Reader, bufferSize int) <-chan []byte
- func WebsocketRecvStream(w io.Writer, conn MessageReader) chan bool
- func WebsocketSendStream(conn MessageWriter, r io.Reader, bufferSize int) chan bool
- type MessageReadWriter
- type MessageReader
- type MessageWriter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExecReaderToChannel ¶
Extensively commented directly in the code. Please leave the comments! Looking at this in a couple of months noone will know why and how this works anymore.
func GetPollRevents ¶
GetPollRevents poll for events on provided fd.
func MirrorToWebsocket ¶
func MirrorToWebsocket(conn MessageWriter, r io.ReadCloser, exited chan struct{}, fd int)
MirrorToWebsocket mirrors PTY output from r (file descriptor fd) to the websocket.
func WebsocketRecvStream ¶
func WebsocketRecvStream(w io.Writer, conn MessageReader) chan bool
func WebsocketSendStream ¶
func WebsocketSendStream(conn MessageWriter, r io.Reader, bufferSize int) chan bool
Types ¶
type MessageReadWriter ¶
type MessageReadWriter interface { MessageReader MessageWriter }
MessageReadWriter is an interface that wraps websocket message reading and writing.
type MessageReader ¶
MessageReader is an interface that wraps websocket message reading.
type MessageWriter ¶
MessageWriter is an interface that wraps websocket message writing.
Click to show internal directories.
Click to hide internal directories.