Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TransferRepository ¶
type TransferRepository interface { Create(ctx context.Context, transfer *Transfer) (*repository.DBTransfer, error) GetAllByWalletID(ctx context.Context, walletID string) ([]repository.DBTransfer, error) }
type TransferService ¶
type TransferService struct {
// contains filtered or unexported fields
}
func NewTransferService ¶
func NewTransferService(repo TransferRepository) *TransferService
func (*TransferService) Create ¶
func (ts *TransferService) Create(ctx context.Context, transferDTO *handlers.TransferDTO) (*handlers.TransferDTO, error)
func (*TransferService) GetWalletTransfers ¶
func (ts *TransferService) GetWalletTransfers(ctx context.Context, walletID string) ([]handlers.TransferDTO, error)
type WalletRepository ¶
type WalletService ¶
type WalletService struct {
// contains filtered or unexported fields
}
func NewWalletService ¶
func NewWalletService(repo WalletRepository) *WalletService
Source Files ¶
Click to show internal directories.
Click to hide internal directories.