Versions in this module Expand all Collapse all v0 v0.1.0 Jan 26, 2019 Changes in this version + type User struct + ID string + Name string + type UserLoader struct + func NewLoader() *UserLoader + func NewUserLoader(config UserLoaderConfig) *UserLoader + func (l *UserLoader) Clear(key string) + func (l *UserLoader) Load(key string) (*User, error) + func (l *UserLoader) LoadAll(keys []string) ([]*User, []error) + func (l *UserLoader) LoadThunk(key string) func() (*User, error) + func (l *UserLoader) Prime(key string, value *User) bool + type UserLoaderConfig struct + Fetch func(keys []string) ([]*User, []error) + MaxBatch int + Wait time.Duration