Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ReaderInput ¶
type ReaderInput struct {
// contains filtered or unexported fields
}
ReaderInput reads from the configured input with some timeout.
func New ¶
func New( reader io.Reader, timeout time.Duration, ) *ReaderInput
New initializes ReaderInput with the given reader and timeout.
func (*ReaderInput) ReadCloser ¶
func (s *ReaderInput) ReadCloser(ctx context.Context) (io.ReadCloser, error)
ReadCloser reads the content from the input.
Click to show internal directories.
Click to hide internal directories.