Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cache ¶
type Cache[Entity, ID any] interface { crud.Creator[Entity] crud.Finder[Entity, ID] crud.Updater[Entity] crud.Deleter[ID] pubsub.CreatorPublisher[Entity] pubsub.UpdaterPublisher[Entity] pubsub.DeleterPublisher[ID] }
type EntityRepository ¶ added in v0.82.0
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 ¶ added in v0.82.0
func (c EntityRepository[Entity, ID]) Benchmark(b *testing.B)
func (EntityRepository[Entity, ID]) Spec ¶ added in v0.82.0
func (c EntityRepository[Entity, ID]) Spec(s *testcase.Spec)
func (EntityRepository[Entity, ID]) Test ¶ added in v0.82.0
func (c EntityRepository[Entity, ID]) Test(t *testing.T)
type Manager ¶
type Manager[Entity, ID any] struct { MakeSubject func(testing.TB) ManagerSubject[Entity, ID] MakeContext func(testing.TB) context.Context MakeEntity func(testing.TB) Entity }
func (Manager[Entity, ID]) ManagerSubject ¶
func (c Manager[Entity, ID]) ManagerSubject() testcase.Var[ManagerSubject[Entity, ID]]
type ManagerSubject ¶
type Repository ¶ added in v0.82.0
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 ¶ added in v0.82.0
func (c Repository[Entity, ID]) Benchmark(b *testing.B)
func (Repository[Entity, ID]) Spec ¶ added in v0.82.0
func (c Repository[Entity, ID]) Spec(s *testcase.Spec)
func (Repository[Entity, ID]) Test ¶ added in v0.82.0
func (c Repository[Entity, ID]) Test(t *testing.T)
Click to show internal directories.
Click to hide internal directories.