Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultConfigTemplate = `` /* 1730-byte string literal not displayed */
View Source
const (
ServiceNameOrchestrator = "orchestrator"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type InitConfig ¶
type InitConfig struct {
// contains filtered or unexported fields
}
type StartConfig ¶
type StartConfig struct { base.Config CoreGRPC string `mapstructure:"core-grpc" json:"core-grpc"` CoreRPC string `mapstructure:"core-rpc" json:"core-rpc"` EvmAccAddress string Bootstrappers string `mapstructure:"bootstrappers" json:"bootstrappers"` P2PListenAddr string `mapstructure:"listen-addr" json:"listen-addr"` P2pNickname string GRPCInsecure bool `mapstructure:"grpc-insecure" json:"grpc-insecure"` LogLevel string LogFormat string MetricsConfig telemetry.Config `mapstructure:"telemetry" json:"telemetry"` }
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.