Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrClosed = errors.New("RestartReader: closed")
Functions ¶
This section is empty.
Types ¶
type RestartReader ¶
type RestartReader struct {
// contains filtered or unexported fields
}
func NewRestartReader ¶
func NewRestartReader(r io.Reader) *RestartReader
NewRestartReader creates and initializes a new RestartReader that reads from the provided io.Reader.
func (*RestartReader) Close ¶
func (rr *RestartReader) Close() error
Close clears the buffer and closes the underlying io.Reader if possible, returning its error.
func (*RestartReader) Restart ¶
func (rr *RestartReader) Restart()
Restart causes subsequent Read calls to read from the beginning, instead of where they left off.
Click to show internal directories.
Click to hide internal directories.