database

package
v0.0.0-...-ffd3783 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 10, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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 (*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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL