orchestrator

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultConfigTemplate = `` /* 1730-byte string literal not displayed */
View Source
const (
	ServiceNameOrchestrator = "orchestrator"
)

Variables

This section is empty.

Functions

func Command

func Command() *cobra.Command

func Init

func Init() *cobra.Command

Init initializes the orchestrator store and creates necessary files.

func Start

func Start() *cobra.Command

Start starts the orchestrator to listen on new attestations, sign them and broadcast them.

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

Jump to

Keyboard shortcuts

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