fs use binary (um)marshaler
This commit is contained in:
+7
-2
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user