config

package
v0.0.0-...-f0b43a4 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBinDir

func GetBinDir() string

GetBinDir returns a string of the project root bin directory TODO does this need a test?

func GetConfigFile

func GetConfigFile(path string) (*os.File, error)

GetConfigFile opens a config file based on a filepath and returns an error if error occurs TODO does this need a test?

Types

type Config

type Config struct {
	Version                 uint16
	InitialAurumSupply      uint64
	Port                    string
	BlockProductionInterval string
	Localhost               bool
	MintAddr                string
}

func LoadConfiguration

func LoadConfiguration() (*Config, error)

LoadConfiguration fills a Config struct with configuration info from a file and returns the struct

Jump to

Keyboard shortcuts

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