dataprovider

package
v0.0.0-...-6378e9d Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2024 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UserAgent string

Configure UserAgent dynamically through build parameters and initialize below. Export for verification in gofer version info.

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

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) OnEncodeBlock

func (c DeviationCircuitBreaker) OnEncodeBlock(block *utilHCL.Block) hcl.Diagnostics

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