Documentation ¶
Index ¶
- type Repository
- func (r Repository) CreateAccount(ctx context.Context, account entities.Account) error
- func (r Repository) GetAccounts(ctx context.Context) ([]entities.Account, error)
- func (r Repository) GetByCpf(ctx context.Context, cpf string) (entities.Account, error)
- func (r Repository) GetById(ctx context.Context, id string) (entities.Account, error)
- func (r Repository) UpdateBalance(ctx context.Context, id string, value int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func NewRepository ¶
func NewRepository(db *pgxpool.Pool) *Repository
func (Repository) CreateAccount ¶
func (Repository) GetAccounts ¶
func (Repository) UpdateBalance ¶
Click to show internal directories.
Click to hide internal directories.