handler

package
v1.0.1-beta.5 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2021 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy

func Copy(ctx context.Context, r *http.Request) (interface{}, error)

Copy is to copy a file from remotePath to destPath in dStorage

func Delete

func Delete(ctx context.Context, r *http.Request) (interface{}, error)

Delete is to delete a file in dStorage

func Download

func Download(ctx context.Context, r *http.Request) (string, error)

Download is to download a file from dStorage

func GetPublicEncryptionKey

func GetPublicEncryptionKey(ctx context.Context, r *http.Request) (interface{}, error)

func GetSyncUploadStatus

func GetSyncUploadStatus(ctx context.Context, r *http.Request) (interface{}, error)

GetSyncUploadStatus get logs from sync upload worker if it is running

func Move

func Move(ctx context.Context, r *http.Request) (interface{}, error)

Move is to move file in dStorage

func Rename

func Rename(ctx context.Context, r *http.Request) (interface{}, error)

Rename is to rename file in dStorage

func Share

func Share(ctx context.Context, r *http.Request) (interface{}, error)

Share is to share file in dStorage

func StartSyncUpload

func StartSyncUpload(ctx context.Context, r *http.Request) (interface{}, error)

StartSyncUpload start sync upload worker

func StopSyncUpload

func StopSyncUpload(ctx context.Context, r *http.Request) (interface{}, error)

StopSyncUpload stop sync upload worker if it is running

func Stream

func Stream(w http.ResponseWriter, r *http.Request) (string, error)

Download is to download a file from dStorage

func Upload

func Upload(ctx context.Context, r *http.Request) (interface{}, error)

Upload is to upload file to dStorage

Types

This section is empty.

Jump to

Keyboard shortcuts

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