client

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2023 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ChunkSize = 1024 * 1024 * 4

	PathNewUpload = "uploads"
	PathDownload  = "file"
)

Variables

View Source
var (
	BaseUrl = "http://localhost:8080"
)

Functions

This section is empty.

Types

type Client

type Client struct {
	Transport http.RoundTripper
	UploadId  string
	Chunks    []upload.FileChunk
	FileInfo  os.FileInfo
	Filepath  string
}
func (c *Client) DownloadLink() string

func (*Client) NewUpload

func (c *Client) NewUpload() error

func (*Client) ReassembleChunks

func (c *Client) ReassembleChunks() error

func (*Client) Upload

func (c *Client) Upload() error

func (*Client) UploadChunk

func (c *Client) UploadChunk(data []byte, chunkNumber int) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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