ezshare/store/store.go

17 lines
317 B
Go
Raw Normal View History

2021-12-03 22:04:09 +00:00
package store
import (
"fmt"
"gitea.benny.dog/torjus/ezshare/pb"
)
var ErrNoSuchFile = fmt.Errorf("no such file")
type FileStore interface {
GetFile(id string) (*pb.File, error)
StoreFile(file *pb.File) (string, error)
DeleteFile(id string) error
2021-12-04 10:30:42 +00:00
ListFiles() ([]*pb.ListFilesResponse_ListFileInfo, error)
2021-12-03 22:04:09 +00:00
}