http

package
v0.0.0-...-b732d2a Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2024 License: Apache-2.0 Imports: 10 Imported by: 7

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

func SetDefaultClient

func SetDefaultClient(client *http.Client)

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