config

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2022 License: Apache-2.0 Imports: 2 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DialTimeout      = 10 * time.Second
	SubscribeTimeout = 10 * time.Second
)

Functions

func SetDialTimeout added in v1.0.9

func SetDialTimeout(dialTimeout time.Duration)

func SetSubscribeTimeout added in v1.0.9

func SetSubscribeTimeout(subscribeTimeout time.Duration)

Types

type Config

type Config struct {
	RPCURL string

	// Timeouts
	DialTimeout      time.Duration
	SubscribeTimeout time.Duration
}

func Default

func Default() Config

DefaultConfig returns the default config. Default values can be overwritten with env variables, most importantly RPC_URL for a custom RPC endpoint.

Jump to

Keyboard shortcuts

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