ledgerconfig

package
v1.0.0-preview Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2017 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBlockStorePath

func GetBlockStorePath() string

GetBlockStorePath returns the filesystem path that is used by the block store

func GetHistoryLevelDBPath

func GetHistoryLevelDBPath() string

GetHistoryLevelDBPath returns the filesystem path that is used to maintain the history level db

func GetLedgerProviderPath

func GetLedgerProviderPath() string

GetLedgerProviderPath returns the filesystem path for stroing ledger ledgerProvider contents

func GetMaxBlockfileSize

func GetMaxBlockfileSize() int

GetMaxBlockfileSize returns maximum size of the block file

func GetRootPath

func GetRootPath() string

GetRootPath returns the filesystem path. All ledger related contents are expected to be stored under this path

func GetStateLevelDBPath

func GetStateLevelDBPath() string

GetStateLevelDBPath returns the filesystem path that is used to maintain the state level db

func IsCouchDBEnabled

func IsCouchDBEnabled() bool

IsCouchDBEnabled exposes the useCouchDB variable

func IsHistoryDBEnabled

func IsHistoryDBEnabled() bool

IsHistoryDBEnabled exposes the historyDatabase variable

Types

type CouchDBDef

type CouchDBDef struct {
	URL      string
	Username string
	Password string
}

CouchDBDef contains parameters

func GetCouchDBDefinition

func GetCouchDBDefinition() *CouchDBDef

GetCouchDBDefinition exposes the useCouchDB variable

Jump to

Keyboard shortcuts

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