Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddWebDN2ImgArray ¶
Types ¶
type ImageStore ¶
type ImageStore interface { Release() GetImageByID(id []byte) *ImageInfo GetImageByName(name []byte) []byte GetAllImageInfo(webAddr string, s, e int64) [][]byte //SaveImage, if id is nil, use a random id SaveImage(data io.Reader, name string, id []byte) ([]byte, error) RemoveImage(id []byte) error }
func New ¶
func New(mateDBPath, imagePath, globalDBPath string) ImageStore
New generate a ImageStore mateDBPath & imagePath: relative path, relative to the path globalDBPath
Click to show internal directories.
Click to hide internal directories.