package
0.0.0-20221214221404-9d30d4c39aa7
Repository: https://github.com/gallery-so/dataloaden.git
Documentation: pkg.go.dev
# Functions
NewLoader will collect user requests for 2 milliseconds and send them as a single batch to the fetch func normally fetch would be a database call.
NewUserLoader creates a new UserLoader given a fetch, wait, and maxBatch.
# Structs
User is some kind of database backed model.
UserLoader batches and caches requests.
UserLoaderConfig captures the config to create a new UserLoader.