Versions in this module Expand all Collapse all v0 v0.0.2 Dec 21, 2022 v0.0.1 Dec 21, 2022 Changes in this version + const BootnodeFlag + const GRPCAddressFlag + const JSONOutputFlag + const JsonrpcAddress + const JsonrpcPort + const LogLevelFlag + const NoDiscoverFlag + func GetGRPCAddress(cmd *cobra.Command) string + func GetRPCAddress(cmd *cobra.Command) string + func GetRPCPort(cmd *cobra.Command) string + func PreRun(cmd *cobra.Command, _ []string) error + func ResolveAddr(address string, defaultIP string) (*net.TCPAddr, error) + func Run(cmd *cobra.Command, args []string) + func SetFlags(cmd *cobra.Command) + type CLIOutput struct + func (c *CLIOutput) SetCommandResult(result CommandResult) + func (c *CLIOutput) SetError(err error) + func (cli *CLIOutput) WriteOutput() + type CommandResult interface + GetOutput func() string + type Config struct + BlockGasTarget string + BlockTime uint64 + DataDir string + GRPCAddr string + GenesisPath string + Headers *Headers + HttpAddr string + HttpPort string + LogFilePath string + LogLevel string + Network *Network + SecretsConfigPath string + func DefaultConfig() *Config + type Headers struct + AccessControlAllowOrigins []string + type JSONOutput struct + func (c *JSONOutput) SetCommandResult(result CommandResult) + func (c *JSONOutput) SetError(err error) + func (jo *JSONOutput) WriteOutput() + type Network struct + DNSAddr string + Libp2pAddr string + MaxInboundPeers int64 + MaxOutboundPeers int64 + MaxPeers int64 + NatAddr string + NoDiscover bool + type OutputFormatter interface + SetCommandResult func(result CommandResult) + SetError func(err error) + WriteOutput func() + func InitializeOutputter(cmd *cobra.Command) OutputFormatter + type Server struct + func NewServer(ctx context.Context, config *ServerConfig) (*Server, error) + func (s *Server) Close() error + func (s *Server) JoinPeer(rawPeerMultiaddr string) error + type ServerConfig struct + BlockTime uint64 + Chain *chain.Chain + Daemon bool + DataDir string + EnableGraphQL bool + GRPCAddr *net.TCPAddr + LibP2PAddr *net.TCPAddr + LogFilePath string + LogLevel hclog.Level + MaxSlots uint64 + Network *network.Config + PriceLimit uint64 + PromoteOutdateSeconds uint64 + PruneTickSeconds uint64 + RestoreFile *string + RpcAddr string + RpcPort string + Seal bool + SecretsManager *secrets.SecretsManagerConfig + ValidatorKey string