Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Collection ¶
type Collection struct {
// contains filtered or unexported fields
}
Collection holds an internal lookup of initialized batch data load functions.
func NewCollection ¶
func NewCollection() *Collection
NewCollection creates an empty loader collection
func (Collection) Attach ¶
func (c Collection) Attach(ctx context.Context, opts ...dataloader.Option) context.Context
Attach creates new instances of dataloader.Loader and attaches the instances on the request context.
func (Collection) Register ¶
func (c Collection) Register(key string, callback BatchFunc)
Register will register a new loader batch function
Click to show internal directories.
Click to hide internal directories.