Documentation ¶
Index ¶
- func NewCurService(apiKey string) *curService
- type FinanceService
- func (f *FinanceService) Close(ctx context.Context) error
- func (f *FinanceService) GetBalance(ctx context.Context, inp *domain.BalanceInput) (float64, error)
- func (f *FinanceService) GetTransactionsList(ctx context.Context, inp *domain.TransactionsListInput) ([]domain.TransactionsListResponse, error)
- func (f *FinanceService) MakeRemittance(ctx context.Context, inp *domain.RemittanceInput) error
- func (f *FinanceService) MakeTransaction(ctx context.Context, inp *domain.TransactionInput) error
- type IRepo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FinanceService ¶
type FinanceService struct {
// contains filtered or unexported fields
}
func NewFinanceService ¶
func NewFinanceService(repo IRepo) *FinanceService
func (*FinanceService) GetBalance ¶
func (f *FinanceService) GetBalance(ctx context.Context, inp *domain.BalanceInput) (float64, error)
func (*FinanceService) GetTransactionsList ¶
func (f *FinanceService) GetTransactionsList(ctx context.Context, inp *domain.TransactionsListInput) ([]domain.TransactionsListResponse, error)
func (*FinanceService) MakeRemittance ¶
func (f *FinanceService) MakeRemittance(ctx context.Context, inp *domain.RemittanceInput) error
func (*FinanceService) MakeTransaction ¶
func (f *FinanceService) MakeTransaction(ctx context.Context, inp *domain.TransactionInput) error
type IRepo ¶
type IRepo interface { //main MakeTransaction(ctx context.Context, inp *domain.TransactionInput) error MakeRemittance(ctx context.Context, inp *domain.RemittanceInput) error GetBalance(ctx context.Context, inp *domain.BalanceInput) (float64, error) GetTransactionsList(ctx context.Context, inp *domain.TransactionsListInput) ([]domain.TransactionsList, error) //sub CreateNewTransaction(ctx context.Context, idFrom uuid.UUID, operation string, sum float64, idTo uuid.UUID, description string) error Close(ctx context.Context) error }
Click to show internal directories.
Click to hide internal directories.