Versions in this module Expand all Collapse all v0 v0.0.1 Mar 28, 2024 Changes in this version + type BatchLoader interface + BatchLoad func(ctx context.Context, keys *[]K) (map[K]*T, error) + type DataLoader struct + func NewDataLoader[K string, T any](ctx context.Context, batchLoader BatchLoader[K, T], maxBatchSize int32, ...) *DataLoader[K, T] + func (d *DataLoader[K, T]) Load(key K) (*T, error) + func (d *DataLoader[K, T]) LoadMany(keys *[]K) ([]*T, error)