Documentation
¶
Index ¶
- Variables
- func Copy(ctx context.Context, r *http.Request) (interface{}, error)
- func Delete(ctx context.Context, r *http.Request) (interface{}, error)
- func Download(ctx context.Context, r *http.Request) (string, error)
- func GetPublicEncryptionKey(ctx context.Context, r *http.Request) (interface{}, error)
- func Move(ctx context.Context, r *http.Request) (interface{}, error)
- func PrintError(v ...interface{})
- func Rename(ctx context.Context, r *http.Request) (interface{}, error)
- func Share(ctx context.Context, r *http.Request) (interface{}, error)
- func Stream(w http.ResponseWriter, r *http.Request) (string, error)
- func Upload(ctx context.Context, r *http.Request) (interface{}, error)
- type StatusBar
- func (s *StatusBar) CommitMetaCompleted(request, response string, err error)
- func (s *StatusBar) Completed(allocationID, filePath string, filename string, mimetype string, size int, ...)
- func (s *StatusBar) Error(allocationID string, filePath string, op int, err error)
- func (s *StatusBar) InProgress(allocationID, filePath string, op int, completedBytes int, bytes []byte)
- func (s *StatusBar) RepairCompleted(filesRepaired int)
- func (s *StatusBar) Started(allocationID, filePath string, op int, totalBytes int)
Constants ¶
This section is empty.
Variables ¶
View Source
var FilesRepo = "files/"
Functions ¶
func GetPublicEncryptionKey ¶
Types ¶
type StatusBar ¶
type StatusBar struct {
// contains filtered or unexported fields
}
StatusBar is to check status of any operation
func (*StatusBar) CommitMetaCompleted ¶
CommitMetaCompleted when commit meta completes
func (*StatusBar) Completed ¶
func (s *StatusBar) Completed(allocationID, filePath string, filename string, mimetype string, size int, op int)
Completed for statusBar
func (*StatusBar) InProgress ¶
func (s *StatusBar) InProgress(allocationID, filePath string, op int, completedBytes int, bytes []byte)
InProgress for statusBar
func (*StatusBar) RepairCompleted ¶
RepairCompleted when repair is completed
Click to show internal directories.
Click to hide internal directories.