config

package
v0.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(customConfigPath string) error

Init either receive custom config path or not from client

1. if custom config path is received it reads config file from that path and saves that config to ~/.cleisthenes/config/

2. if custom config path is empty. then it reads default config and write it down to ~/.cleisthenes/config/

func Path

func Path() string

Types

type Config

type Config struct {
	Identity    Identity
	HoneyBadger HoneyBadger
	Members     Members
	Tpke        Tpke
}

func Get

func Get() *Config

type HoneyBadger

type HoneyBadger struct {
	NetworkSize     int
	Byzantine       int
	BatchSize       int
	ProposeInterval time.Duration
}

type Identity

type Identity struct {
	Address string
}

type Members

type Members struct {
	Addresses []string
}

type Tpke

type Tpke struct {
	MasterPublicKey string
	Threshold       int
}

Jump to

Keyboard shortcuts

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