config

package
v1.0.1-beta.5 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DeploymentDevelopment = 0
	DeploymentTestNet     = 1
	DeploymentMainNet     = 2
)

Variables

View Source
var FilesRepo = "files/"

Functions

func Development

func Development() bool

Development - is the programming running in development mode?

func SetupConfig

func SetupConfig(configPath string)

SetupConfig - setup the configuration system

func SetupDefaultConfig

func SetupDefaultConfig()

SetupDefaultConfig - setup the default config options that can be overridden via the config file

func TestNet

func TestNet() bool

TestNet is the program running in TestNet mode?

Types

type Config

type Config struct {
	Port                 int
	ChainID              string
	DeploymentMode       byte
	SignatureScheme      string
	BlockWorker          string
	CleanUpWorkerMinutes int
}

Config - all the config options passed from the command line

var Configuration Config

Configuration of the system

Jump to

Keyboard shortcuts

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