fs use binary (um)marshaler

This commit is contained in:
Ilia Denisov
2025-09-23 22:02:21 +03:00
parent 4d733ae741
commit c777ba91dd
4 changed files with 51 additions and 10 deletions
+7 -2
View File
@@ -1,10 +1,15 @@
package repo
import "github.com/iliadenisov/galaxy/pkg/repo/fs"
import (
"encoding"
"github.com/iliadenisov/galaxy/pkg/repo/fs"
)
type Storage interface {
Lock() (func() error, error)
Write(string, []byte) error
Write(string, encoding.BinaryMarshaler) error
Read(string, encoding.BinaryUnmarshaler) error
}
type repo struct {