Documentation ¶
Index ¶
- type EntityRepoImpl
- func (s *EntityRepoImpl) CountByFilter(ctx context.Context, f *domain.EntityFilter) (uint64, error)
- func (r *EntityRepoImpl) DeleteByID(ctx context.Context, id uint64) error
- func (dr *EntityRepoImpl) GetByID(ctx context.Context, id uint64) (*domain.Entity, error)
- func (dr *EntityRepoImpl) GetByUUID(ctx context.Context, uid string) (*domain.Entity, error)
- func (r *EntityRepoImpl) Insert(ctx context.Context, m *domain.Entity) error
- func (s *EntityRepoImpl) ListByFilter(ctx context.Context, f *domain.EntityFilter) ([]*domain.Entity, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EntityRepoImpl ¶
type EntityRepoImpl struct {
// contains filtered or unexported fields
}
func NewEntityRepoImpl ¶
func NewEntityRepoImpl(db *sql.DB, logger *zerolog.Logger) *EntityRepoImpl
func (*EntityRepoImpl) CountByFilter ¶
func (s *EntityRepoImpl) CountByFilter(ctx context.Context, f *domain.EntityFilter) (uint64, error)
func (*EntityRepoImpl) DeleteByID ¶
func (r *EntityRepoImpl) DeleteByID(ctx context.Context, id uint64) error
func (*EntityRepoImpl) ListByFilter ¶
func (s *EntityRepoImpl) ListByFilter(ctx context.Context, f *domain.EntityFilter) ([]*domain.Entity, error)
Click to show internal directories.
Click to hide internal directories.