readerinput

package
v0.5.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 16, 2024 License: MIT Imports: 5 Imported by: 0

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.

func (*ReaderInput) String

func (s *ReaderInput) String() string

String implements fmt.Stringer.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL