configs

package
v0.0.0-...-6b24a3f Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractBChainConfig

func ExtractBChainConfig(config *BChainConfig, path string, debug bool) (string, error)

ExtractBChainConfig : extract blockchain configuration from file

Types

type BChainConfig

type BChainConfig struct {
	VERSION       string
	IMPORTS       []string
	PORT          string
	SOURCEIPS     []string
	NODE          NodeConfig
	BLOCK         BlockConfig
	MAXUTXO       int
	PROPOSEWINDOW int
	VALIDATE      bool
}

BChainConfig : struct for the blockchain configuration

func (BChainConfig) Port

func (bcc BChainConfig) Port() string

Port : return the port from the configuration

type BlockConfig

type BlockConfig struct {
	MAXPERMINUTE float64
	MAXBYTES     int
}

BlockConfig : struct of configuration of single block

type NodeConfig

type NodeConfig struct {
	MAXCONNECTED int
	MINCONNECTED int
	RETRYTIMEOUT int
}

NodeConfig : struct of configurations about blockchain nodes

type RuleConfig

type RuleConfig struct {
	NAMECODE string
}

RuleConfig : configuration of a rule

Jump to

Keyboard shortcuts

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