http

package
v0.0.0-...-63446fb Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpDownloader

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

func NewHttpDownloader

func NewHttpDownloader(httpClient *http.Client, baseURL string, rootHash hash.Hash) *HttpDownloader

func (*HttpDownloader) DownloadFileAt

func (h *HttpDownloader) DownloadFileAt(index int, destination *os.File) (err error)

type HttpUploader

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

func NewHttpUploader

func NewHttpUploader(httpClient *http.Client, baseURL string) *HttpUploader

func (*HttpUploader) UploadFilesFrom

func (h *HttpUploader) UploadFilesFrom(filePaths []string) (
	uploadedFiles []types.UploadedFile,
	merkleRoot string,
	err error,
)

Jump to

Keyboard shortcuts

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