util

package
v0.0.0-...-785a6da Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2018 License: Apache-2.0 Imports: 4 Imported by: 6

Documentation

Index

Constants

View Source
const (
	CONFIGURATION_FILE = "configuration.json"

	HEALTH_CHECK_INTERVAL = 30 //Sec
	MIN_MINERS            = 1
	FETCH_TIMEOUT         = 10 //SEC
)

Variables

This section is empty.

Functions

func InitLogger

func InitLogger() *log.Logger

Types

type Configuration

type Configuration struct {
	ThisIpport string
	Thisclient struct {
		Ip   string `json:"ip"`
		Port string `json:"port"`
	} `json:"this_client"`
	BootstrapIpport string
	Bootstrapserver struct {
		Ip   string `json:"ip"`
		Port string `json:"port"`
	} `json:"bootstrap_server"`
	MultisigIpport string
	Multisigserver struct {
		Ip   string `json:"ip"`
		Port string `json:"port"`
	} `json:"multisig_server"`
}
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