controller

package
v0.0.0-...-b3a75bd Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthIntercepter

func AuthIntercepter(h httprouter.Handle) httprouter.Handle

AuthIntercepter is to do some verification before entering the handler

func BatchFilesQueryHandler

func BatchFilesQueryHandler(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

BatchFilesQueryHandler is to handle querying files' metadata by limitCount.

func FileBRDownloadHandler

func FileBRDownloadHandler(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

FileBRDownloadHandler is to handle downloading files in breakpoint-resumed mode

func FileDeleteHandler

func FileDeleteHandler(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

FileDeleteHandler is to handle browser clients deleting files on the http server.

func FileDownloadAttachmentHandler

func FileDownloadAttachmentHandler(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

FileDownloadAttachmentHandler is to handle browser clients downloading attachments from the http server.

func FileDownloadHandler

func FileDownloadHandler(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

FileDownloadHandler is to handle browser clients downloading files from the http server.

func FileDownloadURLHandler

func FileDownloadURLHandler(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

FileDownloadURLHandler is to handle browser clients generating urls from the http server.

func FileFastUploadHandler

func FileFastUploadHandler(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

FileFastUploadHandler is to handle browser clients uploading files to the http server in fast mode.

func FileMPUploadCancelHandler

func FileMPUploadCancelHandler(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

FileMPUploadCancelHandler is to handle cancelling upload

func FileMPUploadFinishHandler

func FileMPUploadFinishHandler(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

FileMPUploadFinishHandler is to handle merging chunks

func FileMPUploadInitHandler

func FileMPUploadInitHandler(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

FileMPUploadInitHandler is to handle the initlization of every multipart upload try

func FileMPUploadPartHandler

func FileMPUploadPartHandler(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

FileMPUploadPartHandler is to handle saving chunks

func FileMPUploadStatusHandler

func FileMPUploadStatusHandler(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

FileMPUploadStatusHandler is to handle the process of every multipart upload try

func FileNormalUploadHandler

func FileNormalUploadHandler(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

FileNormalUploadHandler is to handle browser clients uploading files to the http server in normal mode.

func FileUpdateHandler

func FileUpdateHandler(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

FileUpdateHandler is to handle updating files' metadata.

func FileUploadHandler

func FileUploadHandler(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

FileUploadHandler is to handle browser clients uploading files to the http server.

func GetUserInfoHandler

func GetUserInfoHandler(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

GetUserInfoHandler is to handle sending user info to the client

func IndexHandler

func IndexHandler(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

IndexHandler is to handle directing to index.html

func SingleFileQueryHandler

func SingleFileQueryHandler(w http.ResponseWriter, r *http.Request, ps httprouter.Params)

SingleFileQueryHandler is to handle querying files' metadata by fileSha1.

func UserSignInHandler

func UserSignInHandler(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

UserSignInHandler is to handle user signing in

func UserSignUpHandler

func UserSignUpHandler(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

UserSignUpHandler is to handle user signing up

Types

This section is empty.

Jump to

Keyboard shortcuts

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