config

package
v0.16.2 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2017 License: Apache-2.0 Imports: 4 Imported by: 12 modules, 37 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfigurationFileBytes

func GetConfigurationFileBytes(chainId, moniker, seeds string, chainImageName string,
	useDataContainer bool, exportedPortsString, containerEntrypoint string) ([]byte, error)

NOTE: [ben] for 0.12.0-rc3 we only have a single configuration path with Tendermint in-process as the consensus engine and BurrowMint in-process as the application manager, so we hard-code the few parameters that are already templated. Let's learn to walk before we can run.

func GetExampleConfigFileBytes

func GetExampleConfigFileBytes() ([]byte, error)

func ViperSubConfig

func ViperSubConfig(conf *viper.Viper, configSubtreePath string) (subConfig *viper.Viper, err error)

Safely get the subtree from a viper config, returning an error if it could not be obtained for any reason.

Types

type ConfigChainGeneral

type ConfigChainGeneral struct {
	AssertChainId       string
	BurrowMajorVersion  uint8
	BurrowMinorVersion  uint8
	GenesisRelativePath string
}

TODO: [ben] increase the configurability upon need

type ConfigChainModule

type ConfigChainModule struct {
	Name               string
	MajorVersion       uint8
	MinorVersion       uint8
	ModuleRelativeRoot string
}

type ConfigServiceGeneral

type ConfigServiceGeneral struct {
	ChainImageName      string
	UseDataContainer    bool
	ExportedPorts       string
	ContainerEntrypoint string
}

type ConfigTendermint

type ConfigTendermint struct {
	Moniker  string
	Seeds    string
	FastSync bool
}

type ModuleConfig

type ModuleConfig struct {
	Module      string
	Name        string
	Version     string
	WorkDir     string
	DataDir     string
	RootDir     string
	ChainId     string
	GenesisFile string
	Config      *viper.Viper
}

Jump to

Keyboard shortcuts

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