Documentation ¶
Index ¶
- type AffirmationRepository
- func (r *AffirmationRepository) CreateAffirmation(ctx context.Context, cac *domain.CreateAffirmationCommand) error
- func (r *AffirmationRepository) DeleteAffirmation(ctx context.Context, id ulid.ULID) error
- func (r *AffirmationRepository) GetAffirmation(ctx context.Context, id ulid.ULID) (*domain.Affirmation, error)
- func (r *AffirmationRepository) GetAffirmations(ctx context.Context) ([]*domain.Affirmation, int, error)
- func (r *AffirmationRepository) UpdateAffirmation(ctx context.Context, id ulid.ULID, uac *domain.UpdateAffirmationCommand) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AffirmationRepository ¶
type AffirmationRepository struct {
// contains filtered or unexported fields
}
func NewAffirmationRepository ¶
func NewAffirmationRepository(db *database.DB) *AffirmationRepository
func (*AffirmationRepository) CreateAffirmation ¶
func (r *AffirmationRepository) CreateAffirmation(ctx context.Context, cac *domain.CreateAffirmationCommand) error
func (*AffirmationRepository) DeleteAffirmation ¶
func (r *AffirmationRepository) DeleteAffirmation(ctx context.Context, id ulid.ULID) error
func (*AffirmationRepository) GetAffirmation ¶
func (r *AffirmationRepository) GetAffirmation(ctx context.Context, id ulid.ULID) (*domain.Affirmation, error)
func (*AffirmationRepository) GetAffirmations ¶
func (r *AffirmationRepository) GetAffirmations(ctx context.Context) ([]*domain.Affirmation, int, error)
func (*AffirmationRepository) UpdateAffirmation ¶
func (r *AffirmationRepository) UpdateAffirmation(ctx context.Context, id ulid.ULID, uac *domain.UpdateAffirmationCommand) error
Click to show internal directories.
Click to hide internal directories.