dataprovider

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2023 License: AGPL-3.0 Imports: 14 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) ConfigureDataProvider added in v0.11.0

func (c *Config) ConfigureDataProvider(d Dependencies) (datapoint.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