Documentation ¶
Overview ¶
Package grpcclient facilitates communication with external gRPC services, specifically for exchange rate retrieval and currency exchange operations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Exchange ¶
type Exchange struct {
MainAPI
}
Exchange represents the GRPC client handler with methods for fetching exchange rates and performing exchanges.
type MainAPI ¶
type MainAPI interface { // GetExchangeRates to fetch exchange rates GetExchangeRates(ctx *gin.Context) // ExchangeSum to exchange currency ExchangeSum(ctx *gin.Context) // CloseGRPC to close GRPC connection CloseGRPC() error }
MainAPI is an interface that defines the methods required for handling GRPC client operations.
Click to show internal directories.
Click to hide internal directories.