Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage interface {
Save(filePath string, file []byte) (string, error)
SaveByReader(fp string, reader io.Reader) (string, error)
Delete(filePath string) error
Get(filePath string) ([]byte, error)
FileExist(fp string) bool
List(dir string) []string
}
func NewHdStorage ¶ added in v1.1.0
Click to show internal directories.
Click to hide internal directories.