config

package
v0.0.0-...-c096a92 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2023 License: MIT Imports: 3 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

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

func GetBlockNumberRange() uint64

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

func GetConcurrencyFactor

func GetConcurrencyFactor() uint64

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

func GetTimeRange

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