Documentation ¶
Overview ¶
Package node contains the main executable for go-spacemesh node
Index ¶
- Constants
- func GetCommand() *cobra.Command
- func LoadConfigFromFile() (*config.Config, error)
- type App
- func (app *App) Cleanup(ctx context.Context)
- func (app *App) Host() *p2p.Host
- func (app *App) Initialize() error
- func (app *App) LoadCheckpoint(ctx context.Context) (*checkpoint.PreservedData, error)
- func (app *App) LoadOrCreateEdSigner() (*signing.EdSigner, error)
- func (app *App) Lock() error
- func (app *App) SetLogLevel(name, loglevel string) error
- func (app *App) Start(ctx context.Context) error
- func (app *App) Started() <-chan struct{}
- func (app *App) Unlock()
- type Option
Constants ¶
View Source
const ( ClockLogger = "clock" P2PLogger = "p2p" PostLogger = "post" StateDbLogger = "stateDbStore" BeaconLogger = "beacon" CachedDBLogger = "cachedDB" PoetDbLogger = "poetDb" TrtlLogger = "trtl" ATXHandlerLogger = "atxHandler" MeshLogger = "mesh" SyncLogger = "sync" HareOracleLogger = "hareOracle" HareLogger = "hare" BlockCertLogger = "blockCert" BlockGenLogger = "blockGenerator" BlockHandlerLogger = "blockHandler" TxHandlerLogger = "txHandler" ProposalBuilderLogger = "proposalBuilder" ProposalListenerLogger = "proposalListener" NipostBuilderLogger = "nipostBuilder" NipostValidatorLogger = "nipostValidator" Fetcher = "fetcher" TimeSyncLogger = "timesync" VMLogger = "vm" GRPCLogger = "grpc" ConStateLogger = "conState" ExecutorLogger = "executor" MalfeasanceLogger = "malfeasance" BootstrapLogger = "bootstrap" )
Logger names.
Variables ¶
This section is empty.
Functions ¶
func GetCommand ¶
func LoadConfigFromFile ¶
LoadConfigFromFile tries to load configuration file if the config parameter was specified.
Types ¶
type App ¶
App is the cli app singleton.
func (*App) Initialize ¶
Initialize parses and validates the node configuration and sets up logging.
func (*App) LoadCheckpoint ¶
func (app *App) LoadCheckpoint(ctx context.Context) (*checkpoint.PreservedData, error)
func (*App) LoadOrCreateEdSigner ¶
LoadOrCreateEdSigner either loads a previously created ed identity for the node or creates a new one if not exists.
func (*App) Lock ¶
Lock locks the app for exclusive use. It returns an error if the app is already locked.
func (*App) SetLogLevel ¶
SetLogLevel updates the log level of an existing logger.
Click to show internal directories.
Click to hide internal directories.