config

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2020 License: Apache-2.0 Imports: 4 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBlockPublisherBufferSize

func GetBlockPublisherBufferSize() int

GetBlockPublisherBufferSize returns the size of the block publisher channel buffer for various block events

func GetConfigUpdatePublisherBufferSize

func GetConfigUpdatePublisherBufferSize() int

GetConfigUpdatePublisherBufferSize returns the size of the config update publisher channel buffer for ledger config update events

func GetOLCollCacheEnabled

func GetOLCollCacheEnabled() bool

GetOLCollCacheEnabled returns if off-ledger cache is enabled

func GetOLCollCacheSize

func GetOLCollCacheSize() int

GetOLCollCacheSize returns the size of the off-ledger cache

func GetOLCollExpirationCheckInterval

func GetOLCollExpirationCheckInterval() time.Duration

GetOLCollExpirationCheckInterval is time when the background routine checks expired collection data in db to cleanup.

func GetOLCollLevelDBPath

func GetOLCollLevelDBPath() string

GetOLCollLevelDBPath returns the filesystem path that is used to maintain the off-ledger level db

func GetOLCollMaxPeersForRetrieval

func GetOLCollMaxPeersForRetrieval() int

GetOLCollMaxPeersForRetrieval returns the number of peers that should be messaged to retrieve collection data that is not stored locally.

func GetOLCollPullTimeout

func GetOLCollPullTimeout() time.Duration

GetOLCollPullTimeout is the amount of time a peer waits for a response from another peer for transient data.

func GetPvtDataCacheSize

func GetPvtDataCacheSize() int

GetPvtDataCacheSize returns the number of pvt data per block to keep the in the cache

func GetRoles

func GetRoles() string

GetRoles returns the roles of the peer. Empty return value indicates that the peer has all roles.

func GetTransientDataCacheSize

func GetTransientDataCacheSize() int

GetTransientDataCacheSize returns the size of the transient data cache

func GetTransientDataExpiredIntervalTime

func GetTransientDataExpiredIntervalTime() time.Duration

GetTransientDataExpiredIntervalTime is time when background routine check expired transient data in db to cleanup.

func GetTransientDataLevelDBPath

func GetTransientDataLevelDBPath() string

GetTransientDataLevelDBPath returns the filesystem path that is used to maintain the transient data level db

func GetTransientDataPullTimeout

func GetTransientDataPullTimeout() time.Duration

GetTransientDataPullTimeout is the amount of time a peer waits for a response from another peer for transient data.

Types

This section is empty.

Directories

Path Synopsis
ledgerconfig
mgr
mocks
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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