query

package
v1.26.0-beta.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

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

	// AssetRateRepo provides an abstraction on top of the operation data source.
	AssetRateRepo ar.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) GetAssetRateByID added in v1.25.0

func (uc *UseCase) GetAssetRateByID(ctx context.Context, organizationID, ledgerID, assetRateID uuid.UUID) (*ar.AssetRate, error)

GetAssetRateByID gets data in the repository.

func (*UseCase) GetOperationByAccount added in v1.15.0

func (uc *UseCase) GetOperationByAccount(ctx context.Context, organizationID, ledgerID, accountID, operationID string) (*o.Operation, error)

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 (uc *UseCase) GetOperationByPortfolio(ctx context.Context, organizationID, ledgerID, portfolioID, operationID string) (*o.Operation, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL