1
0
mirror of https://github.com/fumiama/imago.git synced 2026-06-05 08:20:27 +08:00

add funcs in storage instance

This commit is contained in:
fumiama
2022-01-06 15:15:03 +08:00
parent 0629884a7c
commit 8ce09fa76d

View File

@@ -14,6 +14,9 @@ type StorageInstance interface {
SaveImgBytes(b []byte, imgdir string, force bool, samediff int) (string, string)
SaveImg(r io.Reader, imgdir string, samediff int) (string, string)
ScanImgs(imgdir string)
IsImgExsits(name string) bool
AddImage(name string)
Pick(exclude []string) string
}
type storage struct {