Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type CacheSubject ¶
type CacheSubject[Entity, ID any] struct { Cache cacheCache[Entity, ID] Source cacheSource[Entity, ID] Repository cache.Repository[Entity, ID] }
type EntityRepository ¶
type EntityRepository[Entity, ID any] struct { MakeSubject func(testing.TB) (cache.EntityRepository[Entity, ID], comproto.OnePhaseCommitProtocol) MakeContext func(testing.TB) context.Context MakeEntity func(testing.TB) Entity }
func (EntityRepository[Entity, ID]) Benchmark ¶
func (c EntityRepository[Entity, ID]) Benchmark(b *testing.B)
func (EntityRepository[Entity, ID]) Spec ¶
func (c EntityRepository[Entity, ID]) Spec(s *testcase.Spec)
func (EntityRepository[Entity, ID]) Test ¶
func (c EntityRepository[Entity, ID]) Test(t *testing.T)
type HitRepository ¶ added in v0.131.0
type HitRepository[EntID any] struct { MakeSubject func(tb testing.TB) HitRepositorySubject[EntID] MakeContext func(tb testing.TB) context.Context MakeHit func(tb testing.TB) cache.Hit[EntID] }
func (HitRepository[EntID]) Benchmark ¶ added in v0.131.0
func (c HitRepository[EntID]) Benchmark(b *testing.B)
func (HitRepository[EntID]) Spec ¶ added in v0.131.0
func (c HitRepository[EntID]) Spec(s *testcase.Spec)
func (HitRepository[EntID]) Test ¶ added in v0.131.0
func (c HitRepository[EntID]) Test(t *testing.T)
type HitRepositorySubject ¶ added in v0.131.0
type HitRepositorySubject[EntID any] struct { Resource cache.HitRepository[EntID] CommitManager comproto.OnePhaseCommitProtocol }
type Repository ¶
type Repository[Entity, ID any] struct { MakeSubject func(testing.TB) cache.Repository[Entity, ID] MakeContext func(testing.TB) context.Context MakeEntity func(testing.TB) Entity }
func (Repository[Entity, ID]) Benchmark ¶
func (c Repository[Entity, ID]) Benchmark(b *testing.B)
func (Repository[Entity, ID]) Spec ¶
func (c Repository[Entity, ID]) Spec(s *testcase.Spec)
func (Repository[Entity, ID]) Test ¶
func (c Repository[Entity, ID]) Test(t *testing.T)
Click to show internal directories.
Click to hide internal directories.