Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
Reader is an io.Reader that blocks until the underlying reader until returns something other than io.EOF.
On EOF, it'll keep trying to read again every 10ms.
The purpose of this is to be used to "emulate a STDIN" from another io.Reader, for example, a bytes.Buffer.
We need that because when we connect into an app through wishlist, we need to keep a copy of STDIN (named handoffstdin in most places). That copy is a bytes.Buffer, which would EOF on last byte, but we are still writing to it... so it shouldn't really EOF. Hence, this Reader. It'll never EOF, and will keep trying to read until another error happens.
Click to show internal directories.
Click to hide internal directories.