Documentation ¶
Index ¶
- func CompleteUploadHandler(w http.ResponseWriter, r *http.Request)
- func DownloadHandler(w http.ResponseWriter, r *http.Request)
- func DownloadURLHandler(w http.ResponseWriter, r *http.Request)
- func FileDeleteHandler(w http.ResponseWriter, r *http.Request)
- func FileMetaUpdateHandler(w http.ResponseWriter, r *http.Request)
- func FileQueryHandler(w http.ResponseWriter, r *http.Request)
- func GenToken(username string) string
- func GetFileMetaHandler(w http.ResponseWriter, r *http.Request)
- func HTTPInterceptor(h http.HandlerFunc) http.HandlerFunc
- func InitialMultipartUploadHandler(w http.ResponseWriter, r *http.Request)
- func IsTokenValid(token string, username string) bool
- func SigninHandler(w http.ResponseWriter, r *http.Request)
- func SignupHandler(w http.ResponseWriter, r *http.Request)
- func TryFastUploadHandler(w http.ResponseWriter, r *http.Request)
- func UploadHandler(w http.ResponseWriter, r *http.Request)
- func UploadPartHandler(w http.ResponseWriter, r *http.Request)
- func UploadSucHandler(w http.ResponseWriter, r *http.Request)
- func UserInfoHandler(w http.ResponseWriter, r *http.Request)
- type MultipartUploadInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompleteUploadHandler ¶
func CompleteUploadHandler(w http.ResponseWriter, r *http.Request)
CompleteUploadHandler : 通知上传合并
func DownloadHandler ¶
func DownloadHandler(w http.ResponseWriter, r *http.Request)
func DownloadURLHandler ¶
func DownloadURLHandler(w http.ResponseWriter, r *http.Request)
Download file link from OSS/ceph/localstore
func FileDeleteHandler ¶
func FileDeleteHandler(w http.ResponseWriter, r *http.Request)
func FileMetaUpdateHandler ¶
func FileMetaUpdateHandler(w http.ResponseWriter, r *http.Request)
FileMetaUpdateHandler: update the filename in mysql
func FileQueryHandler ¶
func FileQueryHandler(w http.ResponseWriter, r *http.Request)
func GetFileMetaHandler ¶
func GetFileMetaHandler(w http.ResponseWriter, r *http.Request)
GetFileMetaHandler : get meta
func HTTPInterceptor ¶
func HTTPInterceptor(h http.HandlerFunc) http.HandlerFunc
HTTPInterceptor: Check and intercept token ahead of Handler
func InitialMultipartUploadHandler ¶
func InitialMultipartUploadHandler(w http.ResponseWriter, r *http.Request)
InitialMultipartUploadHandler : 初始化分块上传
func TryFastUploadHandler ¶
func TryFastUploadHandler(w http.ResponseWriter, r *http.Request)
TryFastUploadHandler : Try fast upload
func UploadHandler ¶
func UploadHandler(w http.ResponseWriter, r *http.Request)
process - upload file
func UploadPartHandler ¶
func UploadPartHandler(w http.ResponseWriter, r *http.Request)
UploadPartHandler : 上传文件分块
func UploadSucHandler ¶
func UploadSucHandler(w http.ResponseWriter, r *http.Request)
Upload finished
func UserInfoHandler ¶
func UserInfoHandler(w http.ResponseWriter, r *http.Request)
UserInfoHandler: query user info and return the results to homepage
Types ¶
Click to show internal directories.
Click to hide internal directories.