config

package
v0.0.0-...-c4ca237 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2024 License: MIT Imports: 3 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 {
	Node                   NodeConfig    `yaml:"node"`
	Manager                ManagerConfig `yaml:"manager"`
	WaitPeersFullConnected bool          `yaml:"wait_peers_full_connected"`
	StartingHeight         int64         `yaml:"starting_height"`
	BlockStep              uint64        `yaml:"block_step"`
	BabylonRpc             string        `yaml:"babylon_rpc"`
}

func DefaultConfiguration

func DefaultConfiguration() *Config

func NewConfig

func NewConfig(path string) (*Config, error)

type ManagerConfig

type ManagerConfig struct {
	LevelDbFolder string        `yaml:"level_db_folder"`
	SdkRpc        string        `yaml:"sdk_rpc"`
	WsAddr        string        `yaml:"ws_addr"`
	SignTimeout   time.Duration `yaml:"sign_timeout"`
	NodeMembers   string        `yaml:"node_members"`
}

type NodeConfig

type NodeConfig struct {
	LevelDbFolder    string        `yaml:"level_db_folder"`
	KeyPath          string        `yaml:"key_path"`
	WsAddr           string        `yaml:"ws_addr"`
	SignTimeout      time.Duration `yaml:"sign_timeout"`
	WaitScanInterval time.Duration `yaml:"wait_scan_interval"`
}

Jump to

Keyboard shortcuts

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