utils

package
v0.0.0-...-c669687 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CONFIGURATION_FILE = "configuration.json"

	HEALTH_CHECK_INTERVAL = 30 //Sec
	MIN_MINERS            = 1
)

Variables

This section is empty.

Functions

func InitLogger

func InitLogger() *log.Logger

Types

type Configuration

type Configuration struct {
	ThisIpport string
	This       struct {
		Ip   string `json:"ip"`
		Port string `json:"port"`
	} `json:"multisig"`
	BootstrapIpport string
	Bootstrap       struct {
		Ip   string `json:"ip"`
		Port string `json:"port"`
	} `json:"bootstrap"`
	ClientIpport string
	Client       struct {
		Ip   string `json:"ip"`
		Port string `json:"port"`
	} `json:"client"`
}
var (
	Config Configuration
)

func LoadConfiguration

func LoadConfiguration() (config Configuration)

Jump to

Keyboard shortcuts

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