Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ObjectStorage ¶
type ObjectStorage interface { UploadImage(filePath string, onProgressFun func(int)) (string, string, error) UploadSound(filePath string, onProgressFun func(int)) (string, string, error) UploadFile(filePath string, onProgressFun func(int)) (string, string, error) UploadVideo(videoPath, snapshotPath string, onProgressFun func(int)) (string, string, string, string, error) UploadImageByBuffer(buffer *bytes.Buffer, size int64, imageType string, onProgressFun func(int)) (string, string, error) UploadSoundByBuffer(buffer *bytes.Buffer, size int64, fileType string, onProgressFun func(int)) (string, string, error) UploadFileByBuffer(buffer *bytes.Buffer, size int64, fileType string, onProgressFun func(int)) (string, string, error) UploadVideoByBuffer(videoBuffer, snapshotBuffer *bytes.Buffer, videoSize, snapshotSize int64, videoType, snapshotType string, onProgressFun func(int)) (string, string, string, string, error) }
Click to show internal directories.
Click to hide internal directories.