file_io_handler

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2023 License: MIT Imports: 28 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fids

type Fids struct {
	Fids []string `json:"fids"`
}

type FileIoHandler

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

func NewFileIoHandler

func NewFileIoHandler(w *wallet_handler.WalletHandler) (*FileIoHandler, error)

func (*FileIoHandler) CreateFolders

func (f *FileIoHandler) CreateFolders(parentDir *folder_handler.FolderHandler, newDirs []string) (msgs []sdk.Msg, err error)

func (*FileIoHandler) CreateRoot

func (f *FileIoHandler) CreateRoot() (msgs sdk.Msg, err error)

func (*FileIoHandler) DeleteTargets

func (f *FileIoHandler) DeleteTargets(targets []string, parent *folder_handler.FolderHandler) error

func (*FileIoHandler) DownloadFile

func (f *FileIoHandler) DownloadFile(rawPath string) (fileHandler *file_download_handler.FileDownloadHandler, err error)

func (*FileIoHandler) DownloadFileFromFid

func (f *FileIoHandler) DownloadFileFromFid(fid string) (fileHandler *file_download_handler.FileDownloadHandler, err error)

func (*FileIoHandler) DownloadFolder

func (f *FileIoHandler) DownloadFolder(rawPath string) (folderHandler *folder_handler.FolderHandler, err error)

func (*FileIoHandler) GenerateInitialDirs

func (f *FileIoHandler) GenerateInitialDirs(startingDirs []string) (*sdk.TxResponse, error)

func (*FileIoHandler) LoadNestedFolder

func (f *FileIoHandler) LoadNestedFolder(rawPath string) (folderHandlers *folder_handler.FolderHandler, msgs []sdk.Msg, err error)

func (*FileIoHandler) SignAndBroadcast

func (f *FileIoHandler) SignAndBroadcast(msgs []sdk.Msg) error

func (*FileIoHandler) StaggeredUploadFiles

func (f *FileIoHandler) StaggeredUploadFiles(sourceFiles []*file_upload_handler.FileUploadHandler, parent *folder_handler.FolderHandler, public bool) (failedCount int, fids []string, cids []string, err error)

type Queue

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

func NewQueue

func NewQueue() *Queue

func (*Queue) Empty

func (q *Queue) Empty() bool

func (*Queue) Pop

func (*Queue) Push

Jump to

Keyboard shortcuts

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