any-sync/pkg/acl/list/list.go
2022-08-18 23:03:27 +02:00

17 lines
405 B
Go

package list
import "github.com/anytypeio/go-anytype-infrastructure-experiments/pkg/acl/tree"
type IterFunc = func(record *Record) (IsContinue bool)
type ACLList interface {
tree.RWLocker
ID() string
ACLState() ACLState
IsAfter(first string, second string) (bool, error)
Last() *Record
Get(id string) (*Record, error)
Iterate(iterFunc IterFunc)
IterateFrom(startId string, iterFunc IterFunc)
}