Versions in this module Expand all Collapse all v1 v1.1.0 Sep 28, 2021 Changes in this version + var ImageTypeNotSupport = errors.New("ImageTypeNotSupport") + var NullPtr = errors.New("NullPtr") + var SceneNotExist = errors.New("SceneNotExist") + func CreateScene(scene string) error + func DeleteImage(image *Image) error + func DeleteScene(scene string) + func GetDir(scene string) (string, error) + func GetScenes() []string + func HasScene(scene string) bool + func HasSuffix(suffix string) bool + func OpenFs(dataPath string, suffixs []string) + func Put(scene string, filename string, size int64, data []byte) (string, error) + type Image struct + CreateTime int64 + FileName string + Md5 string + Path string + Scene string + Size int64 + Suffix string + UpdateTime int64 + func Get(md5 string) (*Image, error) + func GetImage(md5 string) (*Image, []byte, error) + func GetPartImage(md5 string, start, end int64) (*Image, []byte, error) v1.0.1 Sep 28, 2021