another round of edits, still need to figure out return types
This commit is contained in:
@@ -5,12 +5,10 @@ import (
|
||||
"os"
|
||||
)
|
||||
|
||||
|
||||
type LocalStorage struct {
|
||||
BaseDir string,
|
||||
BaseDir string
|
||||
}
|
||||
|
||||
|
||||
func (s *LocalStorage) UploadFile(dirPath string, filename string, data io.Reader) error {
|
||||
//
|
||||
}
|
||||
|
||||
@@ -1,12 +1,10 @@
|
||||
package storage
|
||||
|
||||
|
||||
import (
|
||||
"io"
|
||||
"os"
|
||||
)
|
||||
|
||||
|
||||
type Storage interface {
|
||||
UploadFile(dirPath string, filename string, data io.Reader) error
|
||||
ListFiles(dirPath string) ([]FileNode, error)
|
||||
@@ -18,8 +16,8 @@ type Storage interface {
|
||||
}
|
||||
|
||||
type FileNode struct {
|
||||
BasePath string,
|
||||
FileName string,
|
||||
IsDirectory bool,
|
||||
FileSize uint64,
|
||||
RelativeBasePath string
|
||||
FileName string
|
||||
IsDirectory bool
|
||||
FileSize uint64
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user