Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TransferRepository ¶
type TransferRepository struct {
// contains filtered or unexported fields
}
func NewTransferRepository ¶
func NewTransferRepository(db *sql.DB) *TransferRepository
func (*TransferRepository) Create ¶
func (tr *TransferRepository) Create(ctx context.Context, transfer *service.Transfer) (*repository.DBTransfer, error)
func (*TransferRepository) GetAllByWalletID ¶
func (tr *TransferRepository) GetAllByWalletID(ctx context.Context, walletID string) ([]repository.DBTransfer, error)
type WalletRepository ¶
type WalletRepository struct {
// contains filtered or unexported fields
}
func NewWalletRepository ¶
func NewWalletRepository(db *sql.DB) *WalletRepository
func (*WalletRepository) Create ¶
func (wr *WalletRepository) Create(ctx context.Context) (*repository.DBWallet, error)
func (*WalletRepository) GetByWalletID ¶
func (w *WalletRepository) GetByWalletID(ctx context.Context, walletID string) (*repository.DBWallet, error)
Click to show internal directories.
Click to hide internal directories.