Documentation ¶
Index ¶
Constants ¶
View Source
const (
AppName = "storage"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DownloadFileRequest ¶
type DownloadFileRequest struct { BucketName string FileID string *session.Session // contains filtered or unexported fields }
DownloadFileRequest 上传文件请求
func NewDownloadFileRequest ¶
func NewDownloadFileRequest(bucketName, fileID string, writer io.Writer) *DownloadFileRequest
NewDownloadFileRequest todo
func (*DownloadFileRequest) Validate ¶
func (req *DownloadFileRequest) Validate() error
Validate 输入参数校验
type Service ¶
type Service interface { UploadFile(*UploadFileRequest) error Download(*DownloadFileRequest) error }
Service 存储服务
type UploadFileRequest ¶
type UploadFileRequest struct { BucketName string FileName string *session.Session // contains filtered or unexported fields }
UploadFileRequest 上传文件请求
func NewUploadFileRequest ¶
func NewUploadFileRequest(bucketName, fileName string, file io.ReadCloser) *UploadFileRequest
NewUploadFileRequest todo
func NewUploadFileRequestFromHTTP ¶
func NewUploadFileRequestFromHTTP(r *http.Request) *UploadFileRequest
NewUploadFileRequestFromHTTP todo
func (*UploadFileRequest) ReadCloser ¶
func (req *UploadFileRequest) ReadCloser() io.ReadCloser
ReadCloser todo
Click to show internal directories.
Click to hide internal directories.