Documentation ¶
Index ¶
- Constants
- func CreateHTTPHandler(s *server.Server) http.Handler
- func NewAuthHandler() *authHandler
- func NewDownloadHandler(u uploader.Uploader) *downloadHandler
- func NewFileHandler() *fileHandler
- func NewFolderHandler(client *nosclient.NosClient, bucketName string) *folderHandler
- func NewGroupHandler() *groupHandler
- func NewMeHandler(imageUrl image_url.URL) *meHandler
- func NewUploadFileHandler(u go_file_uploader.Uploader) *uploadFile
- func NewUploadImage(u image_uploader.Uploader, imageUrl image_url.URL) *uploadImage
- func NewUserHandler(imageUrl image_url.URL) *userHandler
- type FolderData
- type FormData
- type UploadResponse
Constants ¶
View Source
const (
ChunkMaxSize = 100 << 20 // 分片上传最大 100MB
)
Variables ¶
This section is empty.
Functions ¶
func NewAuthHandler ¶
func NewAuthHandler() *authHandler
func NewDownloadHandler ¶
func NewFileHandler ¶
func NewFileHandler() *fileHandler
func NewFolderHandler ¶
func NewGroupHandler ¶
func NewGroupHandler() *groupHandler
func NewMeHandler ¶
func NewUploadFileHandler ¶
func NewUploadFileHandler(u go_file_uploader.Uploader) *uploadFile
func NewUploadImage ¶
func NewUserHandler ¶
Types ¶
type FolderData ¶
type FormData ¶
type FormData struct { FolderId int64 `json:"folder_id" form:"folder_id"` ChunkIndex int `json:"chunk_index" form:"chunk_index"` TotalChunk int `json:"total_chunk" form:"total_chunk"` TotalSize int64 `json:"total_size" form:"total_size"` FileHash string `json:"file_hash" form:"file_hash"` IsLastChunk bool `json:"is_last_chunk" form:"is_last_chunk"` Filename string `json:"filename" form:"filename"` UploadId string `json:"upload_id" form:"upload_id"` }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.