Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IEntityStorage ¶
type IEntityStorage[T any, K Key] interface { GetEntity(K) (T, error) PutEntities([]T) error GetAll(func(T) bool) error DeleteUids([]K) error Clear() error }
func NewInMemoryEntityStorage ¶
func NewInMemoryEntityStorage[T interface{}, K Key](entityKey func(T) K) IEntityStorage[T, K]
type ILinkStorage ¶
type ILinkStorage[T any, KS Key, KO Key] interface { PutLinks([]T) error DeleteLinks([]IUidLink[KS, KO]) error DeleteLinksForSubjects([]KS) error DeleteLinksForObjects([]KO) error GetLinksForSubjects([]KS, func(T) bool) error GetLinksForObjects([]KO, func(T) bool) error GetAll(func(T) bool) error GetLink(KS, KO) (T, error) Clear() error }
func NewInMemoryLinkStorage ¶
func NewInMemoryLinkStorage[T any, KS Key, KO Key](subjectKey func(T) KS, objectKey func(T) KO) ILinkStorage[T, KS, KO]
type IRecordStorage ¶
func NewInMemoryRecordStorage ¶
func NewInMemoryRecordStorage[T any]() IRecordStorage[T]
type IUidLink ¶
func NewUidLink ¶
Click to show internal directories.
Click to hide internal directories.