Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CsvFileStream ¶
type CsvFileStream struct {
// contains filtered or unexported fields
}
func NewCsvFileStreamByFile ¶ added in v0.0.4
func NewCsvFileStreamByFile(file *os.File) *CsvFileStream
func NewCsvFileStreamByUrl ¶ added in v0.0.4
func NewCsvFileStreamByUrl(url string, options ...CsvFileStreamOption) (*CsvFileStream, error)
func (*CsvFileStream) EstimatedSize ¶
func (c *CsvFileStream) EstimatedSize() int64
func (*CsvFileStream) ForeachRemaining ¶
func (c *CsvFileStream) ForeachRemaining(sink generic.Consumer) error
func (*CsvFileStream) TryAdvance ¶
func (c *CsvFileStream) TryAdvance(sink generic.Consumer) (bool, error)
type CsvFileStreamCfg ¶ added in v0.0.5
type CsvFileStreamCfg struct {
DownloadTimeout int64
}
type CsvFileStreamOption ¶ added in v0.0.5
type CsvFileStreamOption func(cfg *CsvFileStreamCfg)
func WithDownloadTimeout ¶ added in v0.0.5
func WithDownloadTimeout(timeout int64) CsvFileStreamOption
type S3FileStream ¶
type S3FileStream struct {
// contains filtered or unexported fields
}
func NewS3FileStream ¶
func NewS3FileStream(ctx context.Context, cfg *S3FileStreamCfg) (*S3FileStream, error)
func (*S3FileStream) EstimatedSize ¶
func (s *S3FileStream) EstimatedSize() int64
func (*S3FileStream) ForeachRemaining ¶
func (s *S3FileStream) ForeachRemaining(sink generic.Consumer) error
func (*S3FileStream) TryAdvance ¶
func (s *S3FileStream) TryAdvance(sink generic.Consumer) (bool, error)
Click to show internal directories.
Click to hide internal directories.