Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrTimeout = errors.New("Timeout")
Functions ¶
This section is empty.
Types ¶
type KeyPressReader ¶
type KeyPressReader struct { Timeout time.Duration Once *sync.Once Raw bool BufferSize int // contains filtered or unexported fields }
func (KeyPressReader) Read ¶
func (reader KeyPressReader) Read(p []byte) (n int, err error)
Read into the buffer
func (*KeyPressReader) Start ¶
func (reader *KeyPressReader) Start() error
func (*KeyPressReader) Stop ¶
func (reader *KeyPressReader) Stop() error
type ReusableReadCloser ¶
type ReusableReadCloser struct { *sync.RWMutex io.Reader // contains filtered or unexported fields }
ReusableReadCloser is a reusable reader with no-op close
func NewReusableReadCloser ¶
func NewReusableReadCloser(raw interface{}) (*ReusableReadCloser, error)
NewReusableReadCloser is returned for any type of input
func (ReusableReadCloser) Close ¶
func (r ReusableReadCloser) Close() error
Close is a no-op close of ReusableReadCloser
Source Files ¶
Click to show internal directories.
Click to hide internal directories.