config

package
v0.0.0-...-b149aee Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2016 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadFile

func ReadFile(filename string, cfg *T) (err error)

Types

type T

type T struct {
	General struct {
		DataPath string `gcfg:"data-path"`
	}
	API struct {
		HttpPort              int    `gcfg:"http-port"`
		DevelopmentModeAssets string `gcfg:"development-mode-assets"`
	}
	Network struct {
		Port     int
		Hostname string
		Join     []string
	}
	Mining struct {
		Processes int
	}
}

func Default

func Default() (cfg *T)

Jump to

Keyboard shortcuts

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