config

package
v0.0.1-rc1 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Save

func Save(config *Config, path string) error

Save stores the given config at path

Types

type Config

type Config struct {
	// specifies the path to store the sqlite3 database
	DBPath string
	// the name of the wallet to open
	WalletName string
	// the address of a monero-wallet-rpc node
	RPCAddress string
	LogPath    string
	// specifies the account index to use for receiving churned funds to
	ChurnAccountIndex uint64
	// defines the minimum balance an address must have to be churned from
	MinChurnAmount uint64
	// specifies the minimum delay in minutes to use
	MinDelayMinutes int64
	// specifies the maximum delay in minutes to use for relaying a transaction after it is created
	MaxDelayMinutes int64
	// how often we will check for churnable addresses
	ScanInterval time.Duration
}

Config is used to configure the mychurnero service

func DefaultConfig

func DefaultConfig() *Config

DefaultConfig returns a default configuration suitable for testing

func Load

func Load(path string) (*Config, error)

Load returns a config object reading contents from path

Jump to

Keyboard shortcuts

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