Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCurrencyServerHandler ¶
func GetCurrencyServerHandler(e *data.ExchangeRatesHandler, log *zap.Logger) protos.CurrencyServer
GetCurrencyServerHandler creates a new instance of CurrencyServerHandler.
Types ¶
type CurrencyServerHandler ¶
type CurrencyServerHandler struct { protos.UnimplementedCurrencyServer // contains filtered or unexported fields }
CurrencyServerHandler implements protos.CurrencyServer.
func (*CurrencyServerHandler) GetRate ¶
func (c *CurrencyServerHandler) GetRate(ctx context.Context, req *protos.RateRequest) (*protos.RateResponse, error)
GetRate implements the GetRate RPC method.
func (*CurrencyServerHandler) SubscribeRates ¶
func (c *CurrencyServerHandler) SubscribeRates(srv protos.Currency_SubscribeRatesServer) error
Click to show internal directories.
Click to hide internal directories.