Documentation
¶
Index ¶
- type Repo
- func (r Repo) Delete(ctx context.Context, authorID int64, reqID, debtorUsername string) error
- func (r Repo) Get(ctx context.Context, reqID, debtorUsername string) (model.Debt, error)
- func (r Repo) GetByAuthorID(ctx context.Context, authorID int64) ([]model.Debt, error)
- func (r Repo) GetByDebtorUsername(ctx context.Context, debtorUsername string, onlyConfirmed bool) ([]model.Debt, error)
- func (r Repo) Save(ctx context.Context, debt model.Debt) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repo ¶
type Repo struct {
// contains filtered or unexported fields
}
func (Repo) GetByAuthorID ¶
func (Repo) GetByDebtorUsername ¶
Click to show internal directories.
Click to hide internal directories.