17 lines
405 B
Go
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)
|
|
}
|