http

package
v0.0.0-...-c44dcc6 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHttpReader

func NewHttpReader(uri string, dedicatedTransport, ignoreTLSError bool, extraHeaders map[string]string) (source.ParquetFile, error)

func NewMultipartFileWrapper

func NewMultipartFileWrapper(fh *multipart.FileHeader, f multipart.File) source.ParquetFile

Types

type HttpReader

type HttpReader struct {
	// contains filtered or unexported fields
}

func (*HttpReader) Close

func (r *HttpReader) Close() error

func (*HttpReader) Create

func (r *HttpReader) Create(_ string) (source.ParquetFile, error)

func (*HttpReader) Open

func (r *HttpReader) Open(_ string) (source.ParquetFile, error)

func (*HttpReader) Read

func (r *HttpReader) Read(b []byte) (int, error)

func (*HttpReader) Seek

func (r *HttpReader) Seek(offset int64, pos int) (int64, error)

func (*HttpReader) Write

func (r *HttpReader) Write(_ []byte) (int, error)

type MultipartFileWrapper

type MultipartFileWrapper struct {
	FH *multipart.FileHeader
	F  multipart.File
}

func (*MultipartFileWrapper) Close

func (mfw *MultipartFileWrapper) Close() error

func (*MultipartFileWrapper) Create

func (*MultipartFileWrapper) Open

this method is called multiple times on one file to open parallel readers

func (*MultipartFileWrapper) Read

func (mfw *MultipartFileWrapper) Read(p []byte) (int, error)

func (*MultipartFileWrapper) Seek

func (mfw *MultipartFileWrapper) Seek(offset int64, pos int) (int64, error)

func (*MultipartFileWrapper) Write

func (mfw *MultipartFileWrapper) Write(_ []byte) (int, error)

Jump to

Keyboard shortcuts

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