factory

package
v1.3.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIQueryHandlerFactory

APIQueryHandlerFactory inputs the provider configuration and returns a API Query Handler. The factory should case on all the different provider configurations and return the appropriate API Query Handler.

type BaseProviderFactory

type BaseProviderFactory[K providertypes.ResponseKey, V providertypes.ResponseValue] func(
	logger *zap.Logger,
	cfg config.OracleConfig,
	wsMetrics wsmetrics.WebSocketMetrics,
	apiMetrics apimetrics.APIMetrics,
	providerMetrics providermetrics.ProviderMetrics,
) ([]*base.Provider[K, V], error)

BaseProviderFactory inputs the provider configuration and returns a set of base providers. The factory should case on all the different provider configurations and return the appropriate base providers.

type ProviderFactory

ProviderFactory inputs the oracle configuration and returns a set of providers. Developers can implement their own provider factory to create their own providers.

type WebSocketQueryHandlerFactory

WebSocketQueryHandlerFactory inputs the provider configuration and returns a WebSocket Query Handler. The factory should case on all the different provider configurations and return the appropriate WebSocket Query Handler.

Jump to

Keyboard shortcuts

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