starting out

This commit is contained in:
2026-05-19 21:15:27 -06:00
parent 7df6eb3bd5
commit 52a472ef9f
3 changed files with 53 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
module drogobox.com/drogobox-server
go 1.26.3
+39
View File
@@ -0,0 +1,39 @@
package storage
//import ()
type LocalStorage {
BaseDir string
}
func UploadFile(dirPath, filename string, data io.Reader) error {
//
}
func ListFiles(dirPath) {
//
}
func ReadFile() {
//
}
func WriteFile() {
//
}
func CloseFile() {
//
}
func DeleteFile() {
//
}
func DeleteDirectory() {
//
}
func DeleteDirectoryRecursive() {
//
}
+11
View File
@@ -0,0 +1,11 @@
package storage
style Storage interface {
ListFiles()
ReadFile(b []byte) (n int, err error)
WriteFile(b []byte) (n int, err error)
CloseFile() error
DeleteFile()
DeleteDirectory()
DeleteDirectoryRecursive()
}