Documentation ¶
Index ¶
- Variables
- type FdfsStorage
- func (this *FdfsStorage) ConvertFilePath(isSource bool) util.Error
- func (this *FdfsStorage) Delete(isDeleteAll bool) util.Error
- func (this *FdfsStorage) Download() ([]byte, util.Error)
- func (this *FdfsStorage) Upload(bts []byte, fileExt string) (string, util.Error)
- func (this *FdfsStorage) UploadSlave(bts []byte, prefixName string, fileExtName string) (string, util.Error)
- type ImageRequest
- func (this ImageRequest) Delete(r *request.DeleteRequest) (response.DeleteResponse, util.Error)
- func (this ImageRequest) Download(r *request.LoadImgRequest) (response.LoadImgResponse, util.Error)
- func (this ImageRequest) DownloadZip(r *request.LoadZipRequest) (response.LoadZipResponse, util.Error)
- func (this ImageRequest) GetChannel(path string) string
- func (this ImageRequest) Save(r *request.SaveRequest) (response.SaveResponse, util.Error)
- type LogoRequest
- type NfsStorage
- func (this *NfsStorage) ConvertFilePath(isSource bool) util.Error
- func (this *NfsStorage) Delete(isDeleteAll bool) util.Error
- func (this *NfsStorage) Download() ([]byte, util.Error)
- func (this *NfsStorage) Upload(bts []byte, fileExt string) (string, util.Error)
- func (this *NfsStorage) UploadSlave(bts []byte, prefixName string, fileExtName string) (string, util.Error)
- type Storage
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ERRORTYPE_MARSHALJSON = "MarshalJsonErr" ERRORTYPE_STORAGETYPENOSUPPORTE = "StorageTypeNoSupporte" SVG = 6063 NEWIMAGENAMELENGTH = 21 TableCount int = 6 // 64 )
View Source
var ( ERRORTYPE_FDFSUPLOADERR = "fdfs.uploaderr" ERRORTYPE_FDFSCONNECTIONERR = "fdfs.connectionerr" ERRORTYPE_FDFSDOWNLOADERR = "fdfs.downloaderr" ERRORTYPE_NFSDOWNLOADERR = "nfs.downloaderr" ERRORTYPE_FDFSDELETEERR = "fdfs.deleteerr" ERRORTYPE_NFSDELETEERR = "nfs.deleteerr" STORAGETYPE_FDFS = "fdfs" STORAGETYPE_NFS = "nfs" )
View Source
var (
CATTITLE = "Storage"
)
Functions ¶
This section is empty.
Types ¶
type FdfsStorage ¶
func (*FdfsStorage) ConvertFilePath ¶
func (this *FdfsStorage) ConvertFilePath(isSource bool) util.Error
func (*FdfsStorage) Delete ¶
func (this *FdfsStorage) Delete(isDeleteAll bool) util.Error
fdfs ignore isDeleteAll
func (*FdfsStorage) UploadSlave ¶
type ImageRequest ¶
func (ImageRequest) Delete ¶
func (this ImageRequest) Delete(r *request.DeleteRequest) (response.DeleteResponse, util.Error)
func (ImageRequest) Download ¶
func (this ImageRequest) Download(r *request.LoadImgRequest) (response.LoadImgResponse, util.Error)
func (ImageRequest) DownloadZip ¶
func (this ImageRequest) DownloadZip(r *request.LoadZipRequest) (response.LoadZipResponse, util.Error)
func (ImageRequest) GetChannel ¶
func (this ImageRequest) GetChannel(path string) string
func (ImageRequest) Save ¶
func (this ImageRequest) Save(r *request.SaveRequest) (response.SaveResponse, util.Error)
type LogoRequest ¶
type LogoRequest struct { ImageRequest FontSizes []int }
func (LogoRequest) Save ¶
func (this LogoRequest) Save(r *request.SaveRequest) (response.SaveResponse, util.Error)
type NfsStorage ¶
func (*NfsStorage) ConvertFilePath ¶
func (this *NfsStorage) ConvertFilePath(isSource bool) util.Error
func (*NfsStorage) UploadSlave ¶
Click to show internal directories.
Click to hide internal directories.