Documentation ¶
Index ¶
- type SpendingRepository
- type SpendingRepositoryImpl
- func (repository *SpendingRepositoryImpl) Delete(ctx context.Context, db *helper.DynamoDB, spending domain.Spending)
- func (repository *SpendingRepositoryImpl) FindById(ctx context.Context, db *helper.DynamoDB, spendingId string) (domain.Spending, error)
- func (repository *SpendingRepositoryImpl) FindByUserId(ctx context.Context, db *helper.DynamoDB, userId string) []domain.Spending
- func (repository *SpendingRepositoryImpl) Save(ctx context.Context, db *helper.DynamoDB, spending domain.Spending) domain.Spending
- func (repository *SpendingRepositoryImpl) Update(ctx context.Context, db *helper.DynamoDB, spending domain.Spending) domain.Spending
- type UserRepository
- type UserRepositoryImpl
- func (repository *UserRepositoryImpl) Delete(ctx context.Context, db *helper.DynamoDB, user domain.User)
- func (repository *UserRepositoryImpl) FindById(ctx context.Context, db *helper.DynamoDB, userId string) (domain.User, error)
- func (repository *UserRepositoryImpl) Save(ctx context.Context, db *helper.DynamoDB, user domain.User) domain.User
- func (repository *UserRepositoryImpl) Update(ctx context.Context, db *helper.DynamoDB, user domain.User) domain.User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SpendingRepository ¶
type SpendingRepository interface { Save(ctx context.Context, db *helper.DynamoDB, spending domain.Spending) domain.Spending Update(ctx context.Context, db *helper.DynamoDB, spending domain.Spending) domain.Spending Delete(ctx context.Context, db *helper.DynamoDB, spending domain.Spending) FindById(ctx context.Context, db *helper.DynamoDB, spendingId string) (domain.Spending, error) FindByUserId(ctx context.Context, db *helper.DynamoDB, userId string) []domain.Spending }
func NewSpendingRepository ¶
func NewSpendingRepository() SpendingRepository
type SpendingRepositoryImpl ¶
type SpendingRepositoryImpl struct { }
func (*SpendingRepositoryImpl) FindByUserId ¶
type UserRepository ¶
type UserRepository interface { Save(ctx context.Context, db *helper.DynamoDB, user domain.User) domain.User Update(ctx context.Context, db *helper.DynamoDB, user domain.User) domain.User Delete(ctx context.Context, db *helper.DynamoDB, user domain.User) FindById(ctx context.Context, db *helper.DynamoDB, userId string) (domain.User, error) }
func NewUserRepository ¶
func NewUserRepository() UserRepository
Click to show internal directories.
Click to hide internal directories.