Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository[K entity.Entity] interface { Start(ctx context.Context, onBootstrap func(context.Context) error) error Create(context.Context, K) (K, error) Read(context.Context, entity.Id) (K, error) ReadAll(context.Context) ([]K, error) Update(context.Context, K) error Delete(context.Context, K) error Match(context.Context, criteria.Criteria) ([]K, error) MatchOne(context.Context, criteria.Criteria) (K, error) }
Click to show internal directories.
Click to hide internal directories.