Documentation ¶
Index ¶
- type UseCase
- func (uc *UseCase) GetAllMetadataTransactions(ctx context.Context, organizationID, ledgerID string, ...) ([]*t.Transaction, error)
- func (uc *UseCase) GetAllOperationsByAccount(ctx context.Context, organizationID, ledgerID, accountID string, ...) ([]*o.Operation, error)
- func (uc *UseCase) GetAllOperationsByPortfolio(ctx context.Context, organizationID, ledgerID, portfolioID string, ...) ([]*o.Operation, error)
- func (uc *UseCase) GetAllTransactions(ctx context.Context, organizationID, ledgerID string, ...) ([]*t.Transaction, error)
- func (uc *UseCase) GetOperationByAccount(ctx context.Context, organizationID, ledgerID, accountID, operationID string) (*o.Operation, error)
- func (uc *UseCase) GetOperationByID(ctx context.Context, ...) (*o.Operation, error)
- func (uc *UseCase) GetOperationByPortfolio(ctx context.Context, organizationID, ledgerID, portfolioID, operationID string) (*o.Operation, error)
- func (uc *UseCase) GetTransactionByID(ctx context.Context, organizationID, ledgerID, transactionID string) (*t.Transaction, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UseCase ¶
type UseCase struct { // TransactionRepo provides an abstraction on top of the transaction data source. TransactionRepo t.Repository // AccountGRPCRepo provides an abstraction on top of the account grpc. AccountGRPCRepo a.Repository // OperationRepo provides an abstraction on top of the operation data source. OperationRepo o.Repository // MetadataRepo provides an abstraction on top of the metadata data source. MetadataRepo m.Repository }
UseCase is a struct that aggregates various repositories for simplified access in use case implementations.
func (*UseCase) GetAllMetadataTransactions ¶ added in v1.14.0
func (uc *UseCase) GetAllMetadataTransactions(ctx context.Context, organizationID, ledgerID string, filter commonHTTP.QueryHeader) ([]*t.Transaction, error)
GetAllMetadataTransactions fetch all Transacntions from the repository
func (*UseCase) GetAllOperationsByAccount ¶ added in v1.15.0
func (uc *UseCase) GetAllOperationsByAccount(ctx context.Context, organizationID, ledgerID, accountID string, filter commonHTTP.QueryHeader) ([]*o.Operation, error)
func (*UseCase) GetAllOperationsByPortfolio ¶ added in v1.15.0
func (uc *UseCase) GetAllOperationsByPortfolio(ctx context.Context, organizationID, ledgerID, portfolioID string, filter commonHTTP.QueryHeader) ([]*o.Operation, error)
func (*UseCase) GetAllTransactions ¶ added in v1.14.0
func (uc *UseCase) GetAllTransactions(ctx context.Context, organizationID, ledgerID string, filter commonHTTP.QueryHeader) ([]*t.Transaction, error)
GetAllTransactions fetch all Transactions from the repository
func (*UseCase) GetOperationByAccount ¶ added in v1.15.0
func (*UseCase) GetOperationByID ¶ added in v1.18.0
func (uc *UseCase) GetOperationByID(ctx context.Context, organizationID, ledgerID, transactionID, operationID string) (*o.Operation, error)
GetOperationByID gets data in the repository.
func (*UseCase) GetOperationByPortfolio ¶ added in v1.16.0
func (*UseCase) GetTransactionByID ¶ added in v1.14.0
func (uc *UseCase) GetTransactionByID(ctx context.Context, organizationID, ledgerID, transactionID string) (*t.Transaction, error)
GetTransactionByID gets data in the repository.
Click to show internal directories.
Click to hide internal directories.