Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LoaderCollection ¶
type LoaderCollection struct {
// contains filtered or unexported fields
}
Collection holds an internal lookup of initialized batch data load functions.
func NewLoaderCollection ¶
func NewLoaderCollection() LoaderCollection
Initialize a lookup map of context keys to batch functions.
When Attach is called on the Collection, the batch functions are used to create new dataloader instances. The instances are attached to the request context at the provided keys.
The keys are then used to extract the dataloader instances from the request context.
Click to show internal directories.
Click to hide internal directories.