Documentation ¶
Index ¶
- func GetStopMessage(cliContext *common.Cli, filePath string, relayName string, paraChain []string) (string, error)
- type CosmosServiceConfig
- type HardhatServiceConfig
- type IconServiceConfig
- type Key
- type NodeConfig
- type ParaNodeConfig
- type ParaNodeConfigList
- type PolkadotServiceConfig
- func (sc *PolkadotServiceConfig) ConfigureFullNodes(network string)
- func (sc *PolkadotServiceConfig) ConfigureMetrics()
- func (sc *PolkadotServiceConfig) EncodeToString() (string, error)
- func (sc *PolkadotServiceConfig) GetParamsForRelay() (string, error)
- func (sc *PolkadotServiceConfig) HasPrometheus() bool
- func (psc *PolkadotServiceConfig) IsEmpty() error
- func (sc *PolkadotServiceConfig) LoadConfigFromFile(cliContext *common.Cli, filePath string) error
- func (sc *PolkadotServiceConfig) LoadDefaultConfig() error
- func (sc *PolkadotServiceConfig) ValidateConfig() error
- type Ports
- type RelayChainConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CosmosServiceConfig ¶
type CosmosServiceConfig struct { ChainID *string `json:"chain_id"` ChainName *string `json:"chain_name"` Key *string `json:"key"` Password *string `json:"password"` PublicGrpc *int `json:"public_grpc"` PublicHTTP *int `json:"public_http"` PublicTCP *int `json:"public_tcp"` PublicRPC *int `json:"public_rpc"` }
func (*CosmosServiceConfig) EncodeToString ¶
func (cs *CosmosServiceConfig) EncodeToString() (string, error)
func (*CosmosServiceConfig) IsEmpty ¶
func (cc *CosmosServiceConfig) IsEmpty() error
func (*CosmosServiceConfig) LoadConfigFromFile ¶
func (cs *CosmosServiceConfig) LoadConfigFromFile(cliContext *common.Cli, filePath string) error
func (*CosmosServiceConfig) LoadDefaultConfig ¶
func (cs *CosmosServiceConfig) LoadDefaultConfig() error
type HardhatServiceConfig ¶
type HardhatServiceConfig struct {
PublicPort int `json:"public_port"`
}
func (*HardhatServiceConfig) EncodeToString ¶
func (sc *HardhatServiceConfig) EncodeToString() (string, error)
func (*HardhatServiceConfig) LoadDefaultConfig ¶
func (sc *HardhatServiceConfig) LoadDefaultConfig() error
type IconServiceConfig ¶
type IconServiceConfig struct { Port int `json:"private_port"` PublicPort int `json:"public_port"` P2PListenAddress string `json:"p2p_listen_address"` P2PAddress string `json:"p2p_address"` Cid string `json:"cid"` }
func (*IconServiceConfig) EncodeToString ¶
func (sc *IconServiceConfig) EncodeToString() (string, error)
func (*IconServiceConfig) IsEmpty ¶
func (sc *IconServiceConfig) IsEmpty() error
func (*IconServiceConfig) LoadConfigFromFile ¶
func (sc *IconServiceConfig) LoadConfigFromFile(cliContext *common.Cli, filePath string) error
func (*IconServiceConfig) LoadDefaultConfig ¶
func (sc *IconServiceConfig) LoadDefaultConfig() error
type NodeConfig ¶
type NodeConfig struct { Name string `json:"name"` NodeType string `json:"node_type"` Prometheus bool `json:"prometheus"` Ports Ports `json:"ports"` Key Key `json:"key,omitempty"` }
func (*NodeConfig) AssignPorts ¶
func (nc *NodeConfig) AssignPorts(prometheus bool, chainName string) error
func (*NodeConfig) IsEmpty ¶
func (nc *NodeConfig) IsEmpty() error
type ParaNodeConfig ¶
type ParaNodeConfig struct { Name string `json:"name"` Nodes []NodeConfig `json:"nodes"` SudoKey Key `json:"sudo_key,omitempty"` }
func (*ParaNodeConfig) EncodeToString ¶
func (pc *ParaNodeConfig) EncodeToString() (string, error)
func (*ParaNodeConfig) IsEmpty ¶
func (pnc *ParaNodeConfig) IsEmpty() error
type ParaNodeConfigList ¶
type ParaNodeConfigList []ParaNodeConfig
func (ParaNodeConfigList) EncodeToString ¶
func (pc ParaNodeConfigList) EncodeToString() (string, error)
type PolkadotServiceConfig ¶
type PolkadotServiceConfig struct { ChainType string `json:"chain_type"` RelayChain RelayChainConfig `json:"relaychain"` Para []ParaNodeConfig `json:"parachains"` Explorer bool `json:"explorer"` WithoutRegistration bool `json:"without_registration"` }
func (*PolkadotServiceConfig) ConfigureFullNodes ¶
func (sc *PolkadotServiceConfig) ConfigureFullNodes(network string)
func (*PolkadotServiceConfig) ConfigureMetrics ¶
func (sc *PolkadotServiceConfig) ConfigureMetrics()
func (*PolkadotServiceConfig) EncodeToString ¶
func (sc *PolkadotServiceConfig) EncodeToString() (string, error)
func (*PolkadotServiceConfig) GetParamsForRelay ¶
func (sc *PolkadotServiceConfig) GetParamsForRelay() (string, error)
func (*PolkadotServiceConfig) HasPrometheus ¶
func (sc *PolkadotServiceConfig) HasPrometheus() bool
func (*PolkadotServiceConfig) IsEmpty ¶
func (psc *PolkadotServiceConfig) IsEmpty() error
func (*PolkadotServiceConfig) LoadConfigFromFile ¶
func (sc *PolkadotServiceConfig) LoadConfigFromFile(cliContext *common.Cli, filePath string) error
func (*PolkadotServiceConfig) LoadDefaultConfig ¶
func (sc *PolkadotServiceConfig) LoadDefaultConfig() error
func (*PolkadotServiceConfig) ValidateConfig ¶
func (sc *PolkadotServiceConfig) ValidateConfig() error
type RelayChainConfig ¶
type RelayChainConfig struct { Name string `json:"name,omitempty"` Nodes []NodeConfig `json:"nodes,omitempty"` }
func (*RelayChainConfig) EncodeToString ¶
func (rc *RelayChainConfig) EncodeToString() (string, error)
func (*RelayChainConfig) IsEmpty ¶
func (rcc *RelayChainConfig) IsEmpty() error
Click to show internal directories.
Click to hide internal directories.