config

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	KeystorePath         string
	ElectorAccount       string
	StafiHubEndpointList []string
	GasPrice             string
	ListenAddr           string
	RTokenInfo           []RTokenInfo

	Db Db
}

func Load

func Load(configFilePath string) (*Config, error)

type Db added in v0.2.0

type Db struct {
	Host string
	Port string
	User string
	Pwd  string
	Name string
}

type Dec added in v0.2.0

type Dec struct {
	sdk.Dec
}

func (*Dec) UnmarshalTOML added in v0.2.0

func (d *Dec) UnmarshalTOML(v interface{}) error

type RTokenInfo added in v0.1.0

type RTokenInfo struct {
	Denom           string
	MaxCommission   *Dec  `toml:",omitempty"`
	MaxMissedBlocks int64 `toml:",omitempty"`
	EndpointList    []string
}

Jump to

Keyboard shortcuts

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