core

package
v0.12.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2016 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Overview

config.go keeps explicit structures on the runtime configuration of Eris-DB and all modules. It loads these from the Viper configuration loaded in `definitions.Do`

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadApplicationManagerModuleConfig

func LoadApplicationManagerModuleConfig(do *definitions.Do) (*config.ModuleConfig, error)

LoadApplicationManagerModuleConfig wraps specifically for the application manager

func LoadConsensusModuleConfig

func LoadConsensusModuleConfig(do *definitions.Do) (*config.ModuleConfig, error)

LoadConsensusModuleConfig wraps specifically for the consensus module

func LoadModuleConfig

func LoadModuleConfig(conf *viper.Viper, rootWorkDir, rootDataDir,
	genesisFile, chainId, module string) (*config.ModuleConfig, error)

Generic Module loader for configuration information

func LoadServerConfig

func LoadServerConfig(do *definitions.Do) (*server.ServerConfig, error)

LoadServerModuleConfig wraps specifically for the servers run by core

Types

type Core

type Core struct {
	// contains filtered or unexported fields
}

Core is the high-level structure

func NewCore

func NewCore(chainId string, consensusConfig *config.ModuleConfig,
	managerConfig *config.ModuleConfig) (*Core, error)

func (*Core) NewGatewayTendermint

func (core *Core) NewGatewayTendermint(config *server.ServerConfig) (
	*rpc_tendermint.TendermintWebsocketServer, error)

func (*Core) NewGatewayV0

func (core *Core) NewGatewayV0(config *server.ServerConfig) (*server.ServeProcess,
	error)

Directories

Path Synopsis
TODO: [ben] this is poorly constructed but copied over from eris-db/erisdb/pipe/types to make incremental changes and allow for a discussion around the proper defintion of the needed types.
TODO: [ben] this is poorly constructed but copied over from eris-db/erisdb/pipe/types to make incremental changes and allow for a discussion around the proper defintion of the needed types.

Jump to

Keyboard shortcuts

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