ezshare/store/store.go
2021-12-03 23:05:29 +01:00

16 lines
258 B
Go

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
}