config

package
v1.10.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2021 License: CC0-1.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(key string) string

Get - Get config value by key

func GetBlockConfirmations added in v1.3.0

func GetBlockConfirmations() uint64

GetBlockConfirmations - Number of block confirmations required before considering that block to be finalized, and can be persisted in a permanent data store

func GetBlockNumberRange added in v1.3.0

func GetBlockNumberRange() uint64

GetBlockNumberRange - Returns how many blocks can be queried at a time when performing range based queries from client side

func GetConcurrencyFactor added in v1.2.0

func GetConcurrencyFactor() uint64

GetConcurrencyFactor - Reads concurrency factor specified in `.env` file, during deployment and returns that number as unsigned integer

func GetSnapshotFile added in v1.5.0

func GetSnapshotFile() string

GetSnapshotFile - Reading snapshot file name from config file, if not provided, `snapshot.bin` is used as default file name

func GetTimeRange added in v1.3.0

func GetTimeRange() uint64

GetTimeRange - Returns what's the max time span that can be used while performing query from client side, in terms of second

func Read

func Read(file string) error

Read - Reading .env file content, during application start up

Types

This section is empty.

Jump to

Keyboard shortcuts

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