config

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: May 23, 2020 License: AGPL-3.0 Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigFile

func ConfigFile() string

func ExportConfigFile

func ExportConfigFile(configFile string, config *Config) error

func LoadConfigFile

func LoadConfigFile(configFile string, config *Config) error

Types

type Config

type Config struct {
	NodeIP      string             `json:"node_ip"`
	ChainID     string             `json:"chain_id"`
	MySQLConfig common.MySQLConfig `json:"mysql"`
	RewardConf  *RewardConfig      `json:"reward_config"`
}

type RewardConfig

type RewardConfig struct {
	XPub          string `json:"xpub"`
	AccountID     string `json:"account_id"`
	Password      string `json:"password"`
	MiningAddress string `json:"mining_address"`
	RewardRatio   uint64 `json:"reward_ratio"`
}

Jump to

Keyboard shortcuts

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