Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadOnceAsync ¶
ReadOnceAsync reads from the stream once
Types ¶
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
Reader reads and validates lines from a stream
func NewReader ¶
func NewReader(client *http.Client, logger *logr.Logger, options *ReaderOptions, baseURL string) *Reader
NewReader creates a new reader
func (*Reader) ProcessBatch ¶
ProcessBatch simulates batch processing to help trigger the issue
func (*Reader) ProcessLine ¶
ProcessLine validates a line against the expected value
type ReaderOptions ¶
type ReaderOptions struct {
BatchSize int
ChunkSize int
Delay time.Duration
FillBuffer bool
StreamSource StreamSource
}
ReaderOptions configures the reader
func DefaultReaderOptions ¶
func DefaultReaderOptions() *ReaderOptions
DefaultReaderOptions returns default options
type StreamSource ¶
type StreamSource int
StreamSource defines the source of the stream
const ( // StreamSourceHTTP retrieves the stream from an HTTP server StreamSourceHTTP StreamSource = iota // StreamSourceLocal creates a local stream StreamSourceLocal )
Click to show internal directories.
Click to hide internal directories.