dataprovider

package
v0.11.0-dev.0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2023 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Origins    []configOrigin    `hcl:"origin,block"`
	DataModels []configDataModel `hcl:"data_model,block"`

	// HCL fields:
	Range   hcl.Range       `hcl:",range"`
	Content hcl.BodyContent `hcl:",content"`
}

func (*Config) DataProvider

func (c *Config) DataProvider(d Dependencies) (data.Provider, error)

type Dependencies

type Dependencies struct {
	HTTPClient *http.Client
	Clients    ethereum.ClientRegistry
	Logger     log.Logger
}

type DeviationCircuitBreaker

type DeviationCircuitBreaker struct {
	Threshold float64 `hcl:"threshold"`
	// contains filtered or unexported fields
}

DeviationCircuitBreaker is a configuration for a DeviationCircuitBreaker node.

func (*DeviationCircuitBreaker) PostDecodeBlock

func (c *DeviationCircuitBreaker) PostDecodeBlock(
	ctx *hcl.EvalContext,
	_ *hcl.BodySchema,
	_ *hcl.Block,
	_ *hcl.BodyContent) hcl.Diagnostics

Jump to

Keyboard shortcuts

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