package
0.0.0-20241112125757-779aa9ab4555
Repository: https://github.com/bcc-code/bcc-media-platform.git
Documentation: pkg.go.dev

# Functions

GetByID returns the object from the loader.
GetMany retrieves multiple items from specified loader.
New creates a new batch loader.
NewCollection of loaders or other structures.
NewConversionLoader returns a configured batch loader for Lists.
NewCustomLoader returns a configured batch loader for items.
NewFilterLoader is just for filtering a list of keys or checking if user has access to a specific id.
NewListLoader returns a configured batch loader for Lists.
NewLoader returns a configured batch loader for items.
NewMemoryLoaderCache returns a new memory cache.
NewRelationLoader returns a configured batch loader for Lists.
WithKeyFunc specifies that the key should be retrieved with this function.
WithMemoryCache defines how long a key should live in the cache.
WithName assigns the specified name to the tracer.
WithOnDelete tells the collection to run this function when entry is deleted.

# Structs

Collection is a collection of loaders or other advanced structures.
Loader contains loader and additional functions to retrieve data easily.
LoaderCache is a cache for batchloaders.
MemoryCache is a simple memory cache.
RelationItem implements Relation.

# Interfaces

Conversion contains the original and converted value.
HasKey interface for items with keys.
Option is the interface for all options.
Relation contains a simple id to relation struct.