Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultConfigTemplate = `` /* 2375-byte string literal not displayed */
View Source
const (
ServiceNameRelayer = "relayer"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type InitConfig ¶
type InitConfig struct {
// contains filtered or unexported fields
}
type StartConfig ¶
type StartConfig struct { base.Config EvmChainID uint64 `mapstructure:"evm-chain-id" json:"evm-chain-id"` EvmRPC string `mapstructure:"evm-rpc" json:"evm-rpc"` CoreGRPC string `mapstructure:"core-grpc" json:"core-grpc"` CoreRPC string `mapstructure:"core-rpc" json:"core-rpc"` ContractAddr string `mapstructure:"contract-address" json:"contract-address"` EvmGasLimit uint64 `mapstructure:"gas-limit" json:"gas-limit"` Bootstrappers string `mapstructure:"bootstrappers" json:"bootstrappers"` P2PListenAddr string `mapstructure:"listen-addr" json:"listen-addr"` GrpcInsecure bool `mapstructure:"grpc-insecure" json:"grpc-insecure"` LogLevel string LogFormat string EVMRetryTimeout uint64 `mapstructure:"retry-timeout" json:"retry-timeout"` MetricsConfig telemetry.Config `mapstructure:"telemetry" json:"telemetry"` // contains filtered or unexported fields }
func DefaultStartConfig ¶
func DefaultStartConfig() *StartConfig
func GetStartConfig ¶ added in v1.1.0
func GetStartConfig(v *viper.Viper, configPath string) (*StartConfig, error)
GetStartConfig reads values from config.toml file and unmarshalls them into StartConfig
func LoadFileConfiguration ¶
func LoadFileConfiguration(homeDir string) (*StartConfig, error)
func (StartConfig) ValidateBasics ¶
func (cfg StartConfig) ValidateBasics() error
Click to show internal directories.
Click to hide internal directories.