oracle

package
v2.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2025 License: Apache-2.0 Imports: 42 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

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