mainchainconfig

package
v0.28.2 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2022 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// DialTimeoutDefault is a default dial timeout of main chain client connection.
	DialTimeoutDefault = 5 * time.Second
)

Variables

This section is empty.

Functions

func DialTimeout

func DialTimeout(c *config.Config) time.Duration

DialTimeout returns the value of "dial_timeout" config parameter from "mainchain" section.

Returns DialTimeoutDefault if the value is not positive duration.

func RPCEndpoint

func RPCEndpoint(c *config.Config) []string

RPCEndpoint returns a list of the values of "rpc_endpoint" config parameter from "mainchain" section.

Returns empty list if the value is not a non-empty string array.

Types

This section is empty.

Jump to

Keyboard shortcuts

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