streaming

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: MIT Imports: 23 Imported by: 0

Documentation

Overview

Package streaming contains structure and methods for uploading and downloading files from LocalEGA instance.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ResponseJson added in v1.1.1

type ResponseJson struct {
	// defining token response that comes from tsd proxy
	StatusCode int    `json:"statusCode"`
	StatusText string `json:"statusText"`
	Token      string `json:"token"`
}

type Streamer

type Streamer interface {
	Upload(path string, resume, straight bool) error

	Download(fileName string) error
	// contains filtered or unexported methods
}

Streamer interface provides methods for uploading and downloading files from LocalEGA instance.

func NewStreamer

func NewStreamer(client *requests.Client, fileManager *files.FileManager, resumablesManager *resuming.ResumablesManager, straight bool) (Streamer, error)

NewStreamer method constructs Streamer structure.

Jump to

Keyboard shortcuts

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