Documentation ¶
Index ¶
- func ChunkUpload(prefer, dfsID, bucketType, filePath, fileName string) (bn, endpoint string, err error)
- func ChunkUploadGetStream(userID, prefer string, chunk utils.ChunksObj) (utils.ChunksObj, int, string, error)
- func ChunkUploadGetStreamCS(userID, prefer string, chunk utils.ChunksObj) (utils.ChunksObj, int, string, error)
- func ChunkUploadGetStreamCSByDfsID(userID, dfsID, prefer string, chunk utils.ChunksObj) (utils.ChunksObj, int, string, error)
- func ChunkUploadPostStream(userID, prefer string, chunk utils.ChunksObj, fileChunk *multipart.FileHeader) (utils.ChunksObj, int, string, error)
- func ChunkUploadPostStreamCS(userID, prefer string, chunk utils.ChunksObj, fileChunk *multipart.FileHeader) (utils.ChunksObj, int, string, error)
- func ChunkUploadPostStreamCSByDfsID(userID, dfsID, prefer string, chunk utils.ChunksObj, ...) (utils.ChunksObj, int, string, error)
- func GetFile(bucketName, dfsID string) ([]byte, string, string, int64, error)
- func GetTempDownURLFileName(bucketName, dfsID string, expires int64) (map[string]string, error)
- func PutByteFile(prefer, dfsID string, chunk utils.ChunksObj, o map[string]string, f []byte) (utils.ChunksObj, error)
- func PutFile(prefer, dfsID string, chunk utils.ChunksObj, ossFile *multipart.FileHeader) (utils.ChunksObj, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChunkUpload ¶
func ChunkUpload(prefer, dfsID, bucketType, filePath, fileName string) (bn, endpoint string, err error)
ChunkUpload auto upload local file chunk check of get method by cloud
func ChunkUploadGetStream ¶
func ChunkUploadGetStream(userID, prefer string, chunk utils.ChunksObj) (utils.ChunksObj, int, string, error)
ChunkUploadGetStream auto upload file chunk check of get method by cloud
func ChunkUploadGetStreamCS ¶ added in v1.0.6
func ChunkUploadGetStreamCS(userID, prefer string, chunk utils.ChunksObj) (utils.ChunksObj, int, string, error)
ChunkUploadGetStreamCS auto upload file chunk check of get method by cloud also concurrent safe
func ChunkUploadGetStreamCSByDfsID ¶ added in v1.0.7
func ChunkUploadGetStreamCSByDfsID(userID, dfsID, prefer string, chunk utils.ChunksObj) (utils.ChunksObj, int, string, error)
ChunkUploadGetStreamCSByDfsID auto upload file chunk check of get method by cloud also concurrent safe
func ChunkUploadPostStream ¶
func ChunkUploadPostStream(userID, prefer string, chunk utils.ChunksObj, fileChunk *multipart.FileHeader) (utils.ChunksObj, int, string, error)
ChunkUploadPostStream auto upload file chunk by cloud
func ChunkUploadPostStreamCS ¶ added in v1.0.6
func ChunkUploadPostStreamCSByDfsID ¶ added in v1.0.7
func GetTempDownURLFileName ¶
GetTempDownURLFileName get file download url auto by cloud
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.