config

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2020 License: Apache-2.0 Imports: 2 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 {
	RPCURL string

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

func Default added in v1.0.0

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