Versions in this module Expand all Collapse all v0 v0.5.7 Dec 5, 2020 Changes in this version + type Arg interface + type Function func(ctx context.Context, arg Arg) interface + type Generation struct + func (g *Generation) Acquire(ctx context.Context) func() + func (g *Generation) Bind(key interface{}, function Function, cleanup func(interface{})) *Handle + func (g *Generation) Destroy() + func (g *Generation) Inherit(hs ...*Handle) + type Handle struct + func (h *Handle) Cached(g *Generation) interface{} + func (h *Handle) Get(ctx context.Context, g *Generation, arg Arg) (interface{}, error) + type Store struct + func (s *Store) DebugOnlyIterate(f func(k, v interface{})) + func (s *Store) Generation(name string) *Generation + func (s *Store) Stats() map[reflect.Type]int