Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCommand ¶ added in v0.3.0
Types ¶
type Config ¶ added in v0.3.0
type Config struct {
GenesisPath string `json:"chain_config"`
SecretsConfigPath string `json:"secrets_config"`
DataDir string `json:"data_dir"`
BlockGasTarget string `json:"block_gas_target"`
GRPCAddr string `json:"grpc_addr"`
JSONRPCAddr string `json:"jsonrpc_addr"`
Telemetry *Telemetry `json:"telemetry"`
Network *Network `json:"network"`
ShouldSeal bool `json:"seal"`
TxPool *TxPool `json:"tx_pool"`
LogLevel string `json:"log_level"`
RestoreFile string `json:"restore_file"`
BlockTime uint64 `json:"block_time_s"`
Headers *Headers `json:"headers"`
}
Config defines the server configuration params
func DefaultConfig ¶ added in v0.3.0
func DefaultConfig() *Config
DefaultConfig returns the default server configuration
type Headers ¶ added in v0.3.0
type Headers struct {
AccessControlAllowOrigins []string `json:"access_control_allow_origins"`
}
Headers defines the HTTP response headers required to enable CORS.
type Network ¶ added in v0.3.0
type Network struct {
NoDiscover bool `json:"no_discover"`
Libp2pAddr string `json:"libp2p_addr"`
NatAddr string `json:"nat_addr"`
DNSAddr string `json:"dns_addr"`
MaxPeers int64 `json:"max_peers,omitempty"`
MaxOutboundPeers int64 `json:"max_outbound_peers,omitempty"`
MaxInboundPeers int64 `json:"max_inbound_peers,omitempty"`
}
Network defines the network configuration params
Click to show internal directories.
Click to hide internal directories.