handler

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PollRates

type PollRates struct {
	// contains filtered or unexported fields
}

func (*PollRates) AddRates

func (h *PollRates) AddRates(rates *exchange_rate.ListRatesResponse)

type ServerHandler

type ServerHandler struct {
	exchange_rate.UnimplementedExchangeRatesServer
	*PollRates
	// contains filtered or unexported fields
}

func NewExchangeRateServerHandler

func NewExchangeRateServerHandler(logger *zap.Logger, cache *cache.Cache, service *services.CurrencyService, pollingInterval time.Duration) *ServerHandler

func (*ServerHandler) GetRate

func (*ServerHandler) GetSubscriptions

GetSubscriptions returns clients subscriptions request

func (*ServerHandler) ListCurrencies

func (*ServerHandler) ListRates

func (*ServerHandler) StartPolling

func (_this *ServerHandler) StartPolling()

func (*ServerHandler) Subscription

Subscription implements the gRPC bidirectional streaming method for the server

Jump to

Keyboard shortcuts

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