config

package
v0.0.1-beta-test Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2023 License: MIT Imports: 4 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultConfigSet = ConfigSet{
	OCR2CachePollPeriod: 5 * time.Second,
	OCR2CacheTTL:        time.Minute,
	RequestTimeout:      10 * time.Second,
	TxTimeout:           10 * time.Second,
	ConfirmationPoll:    5 * time.Second,
}

Functions

This section is empty.

Types

type Chain

type Chain struct {
	OCR2CachePollPeriod *utils.Duration
	OCR2CacheTTL        *utils.Duration
	RequestTimeout      *utils.Duration
	TxTimeout           *utils.Duration
	ConfirmationPoll    *utils.Duration
}

func (*Chain) SetDefaults

func (c *Chain) SetDefaults()

type Config

type Config interface {
	txm.Config // txm config

	// ocr2 config
	ocr2.Config

	// client config
	RequestTimeout() time.Duration
}

type ConfigSet

type ConfigSet struct {
	OCR2CachePollPeriod time.Duration
	OCR2CacheTTL        time.Duration

	// client config
	RequestTimeout time.Duration

	// txm config
	TxTimeout        time.Duration
	ConfirmationPoll time.Duration
}

type Node

type Node struct {
	Name *string
	URL  *utils.URL
}

Jump to

Keyboard shortcuts

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