config

package
v0.31.3 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2021 License: Apache-2.0 Imports: 5 Imported by: 3

Documentation

Index

Constants

View Source
const DefaultPostgresDBURL = "postgres://postgres@localhost:5432/postgres?sslmode=disable"

Variables

This section is empty.

Functions

This section is empty.

Types

type VentConfig

type VentConfig struct {
	DBAdapter           string
	DBURL               string
	DBSchema            string
	ChainAddress        string
	HTTPListenAddress   string
	BlockConsumerConfig chain.BlockConsumerConfig
	// Global contracts to watch specified as hex
	WatchAddresses []crypto.Address
	MinimumHeight  uint64
	SpecFileOrDirs []string
	AbiFileOrDirs  []string
	SpecOpt        sqlsol.SpecOpt
	// Announce status every AnnouncePeriod
	AnnounceEvery time.Duration
}

VentConfig is a set of configuration parameters

func DefaultVentConfig

func DefaultVentConfig() *VentConfig

DefaultFlags returns a configuration with default values

Jump to

Keyboard shortcuts

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