Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AuthPostgres ¶
type AuthPostgres struct {
// contains filtered or unexported fields
}
func NewAuthPostgres ¶
func NewAuthPostgres(db *sqlx.DB) *AuthPostgres
func (*AuthPostgres) CreateUser ¶
func (r *AuthPostgres) CreateUser(user domain.User) (int, error)
type Authorization ¶
type Repository ¶
type Repository struct { Authorization Wallet Transaction }
func NewRepository ¶
func NewRepository(db *sqlx.DB) *Repository
type Transaction ¶
type Transaction interface { }
type WalletPostgres ¶
type WalletPostgres struct {
// contains filtered or unexported fields
}
func NewWalletPostgres ¶
func NewWalletPostgres(db *sqlx.DB) *WalletPostgres
func (*WalletPostgres) CreateWallet ¶
func (*WalletPostgres) GetAllWallets ¶
func (r *WalletPostgres) GetAllWallets(userId int) ([]domain.Wallet, error)
func (*WalletPostgres) GetWalletById ¶
func (r *WalletPostgres) GetWalletById(userId, walletId int) (domain.Wallet, error)
Click to show internal directories.
Click to hide internal directories.