Documentation ¶
Index ¶
- func APIQueryHandlerFactory(ctx context.Context, logger *zap.Logger, cfg config.ProviderConfig, ...) (types.PriceAPIQueryHandler, error)
- func MarketMapProviderFactory(logger *zap.Logger, providerMetrics providermetrics.ProviderMetrics, ...) (*types.MarketMapProvider, error)
- func WebSocketQueryHandlerFactory(_ context.Context, logger *zap.Logger, cfg config.ProviderConfig, ...) (types.PriceWebSocketQueryHandler, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func APIQueryHandlerFactory ¶
func APIQueryHandlerFactory( ctx context.Context, logger *zap.Logger, cfg config.ProviderConfig, metrics metrics.APIMetrics, ) (types.PriceAPIQueryHandler, error)
APIQueryHandlerFactory returns a sample implementation of the API query handler factory. Specifically, this factory function returns API query handlers that are used to fetch data from the price providers.
func MarketMapProviderFactory ¶
func MarketMapProviderFactory( logger *zap.Logger, providerMetrics providermetrics.ProviderMetrics, apiMetrics apimetrics.APIMetrics, cfg config.ProviderConfig, ) (*types.MarketMapProvider, error)
MarketMapProviderFactory returns a sample implementation of the market map provider. This provider is responsible for fetching updates to the canonical market map on the given chain.
func WebSocketQueryHandlerFactory ¶
func WebSocketQueryHandlerFactory( _ context.Context, logger *zap.Logger, cfg config.ProviderConfig, wsMetrics wsmetrics.WebSocketMetrics, ) (types.PriceWebSocketQueryHandler, error)
WebSocketQueryHandlerFactory returns a sample implementation of the websocket query handler factory. Specifically, this factory function returns websocket query handlers that are used to fetch data from the price providers.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.