Documentation ¶
Index ¶
- Variables
- func CheckImageType(b []byte) string
- func CheckPath(str string) uint
- func DeleteAfterLastCharacter(s string, character string) string
- func GetHomeDir() string
- func GetStringStringMapKey(m map[string]string) []string
- func GetStringUploadMapKey(m map[string]Upload) []string
- func StrimList(l []string) []string
- type BaseStorage
- type Image
- type MetaStorage
- type Upload
Constants ¶
This section is empty.
Variables ¶
View Source
var StroageHelp = make(map[string]string, 0)
View Source
var StroageMap = make(map[string]Upload, 0)
Functions ¶
func CheckImageType ¶
func GetHomeDir ¶
func GetHomeDir() string
func GetStringStringMapKey ¶
func GetStringUploadMapKey ¶
Types ¶
type BaseStorage ¶
type BaseStorage struct { ImageList []*Image // contains filtered or unexported fields }
func NewBaseStorage ¶
func NewBaseStorage(paths []string, nameReserve bool) *BaseStorage
func (*BaseStorage) Destory ¶
func (b *BaseStorage) Destory()
type MetaStorage ¶
type MetaStorage struct {
B *BaseStorage
}
func NewMetaStorage ¶
func NewMetaStorage() *MetaStorage
func (*MetaStorage) SetPicList ¶
func (m *MetaStorage) SetPicList(paths []string, nameReserve bool)
Click to show internal directories.
Click to hide internal directories.