configs

package
v0.0.0-...-19da55a Latest Latest
Warning

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

Go to latest
Published: May 25, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRootPath

func GetRootPath() string

This function retrieves the root path of where the binary is being executed

Types

type Configuration

type Configuration struct {
	GRPC struct {
		Server       string `json:"server"`
		TLS          bool   `json:"tls"`
		APICallRetry int    `json:"api_call_retry"`
		CallTimeout  int    `json:"call_timeout"`
	} `json:"grpc"`

	TendermintClient struct {
		SubscriberName string `json:"subscriber_name"`
		ConnectRetry   int    `json:"connect_retry"`
	} `json:"tendermint_client"`

	Bech32Prefix struct {
		Account struct {
			Address string `json:"address"`
			PubKey  string `json:"pubkey"`
		} `json:"account"`

		Validator struct {
			Address string `json:"address"`
			PubKey  string `json:"pubkey"`
		} `json:"validator"`

		Consensus struct {
			Address string `json:"address"`
			PubKey  string `json:"pubkey"`
		} `json:"consensus"`
	} `json:"bech32_prefix"`
}
var Configs Configuration

Jump to

Keyboard shortcuts

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