18 lines
441 B
Go
18 lines
441 B
Go
package storage
|
|
|
|
import (
|
|
"context"
|
|
"github.com/anytypeio/go-anytype-infrastructure-experiments/pkg/acl/aclchanges/aclpb"
|
|
)
|
|
|
|
type TreeStorage interface {
|
|
Storage
|
|
Heads() ([]string, error)
|
|
SetHeads(heads []string) error
|
|
|
|
AddRawChange(change *aclpb.RawChange) error
|
|
GetRawChange(ctx context.Context, recordID string) (*aclpb.RawChange, error)
|
|
}
|
|
|
|
type TreeStorageCreatorFunc = func(payload TreeStorageCreatePayload) (TreeStorage, error)
|