config

package
v0.0.0-...-4405966 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DBName     string
	DBUser     string
	DBPassword string
	DBHost     string
	DBPort     int
)

PostgresSQL database config

View Source
var (
	// DeroNetwork is either mainnet or testnet
	DeroNetwork string
	// DeroDaemonAddress is the host:port of the (possibly remote) node active wallets will connect to
	DeroDaemonAddress string
	// WalletsPath is the relative path of the directory where active wallets files will be stored
	WalletsPath string
	// PaymentMaxTTL is the MAX number of MINUTES allowed to receive payment before it expires
	PaymentMaxTTL int
	// PaymentMinConfirmations is the MINIMUM number of confirmations a payment needs to have before it is considered valid
	PaymentMinConfirmations int
)

Dero Network, wallet and payments config

View Source
var (
	TestDBName            string
	TestDBUser            string
	TestDBPassword        string
	TestDBHost            string
	TestDBPort            int
	TestRedisAddress      string
	TestDeroNetwork       string
	TestDeroDaemonAddress string
	TestWalletsPath       string
)

Config for testing

View Source
var RedisAddress string

RedisAddress is the host:port of the Redis server the application will connect to

View Source
var ServerPort int

ServerPort is the port the web server will listen to

Functions

func LoadFromENV

func LoadFromENV(filenames ...string) error

LoadFromENV loads the config from .env file

Types

This section is empty.

Jump to

Keyboard shortcuts

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