Files
core/Exit.go
Akilan Selvacoumar ae5f1d2fd7 New features (#110)
* added upload status

* added changes for progress bar with more logs and bug fixes, Documentation yet to be added

* huge changes that need more doucmenting

* added possibility to get profile using NodeID

* added fix profile listing user profile information

* removed profile image from the explore reult struct

* saving current changes

* added filter to search based on NodeID

* Monday bug fixing

* updates to the profile

* changes for tracing the blockchain profile image not shown

* added condition to ensure TAG is not sent and removed debug prints

* updated webapi docs
2023-06-28 00:38:17 +01:00

25 lines
1.2 KiB
Go

/*
File Username: Exit.go
Copyright: 2021 Peernet s.r.o.
Author: Peter Kleissner
*/
package core
// Exit codes signal why the application exited. These are universal between clients developed by the Peernet organization.
// Clients are encouraged to log additional details in a log file. 3rd party clients may define additional exit codes.
const (
ExitSuccess = 0 // This is actually never used.
ExitErrorConfigAccess = 1 // Error accessing the config file.
ExitErrorConfigRead = 2 // Error reading the config file.
ExitErrorConfigParse = 3 // Error parsing the config file.
ExitErrorLogInit = 4 // Error initializing log file.
ExitParamWebapiInvalid = 5 // Parameter for webapi is invalid.
ExitPrivateKeyCorrupt = 6 // Private key is corrupt.
ExitPrivateKeyCreate = 7 // Cannot create a new private key.
ExitBlockchainCorrupt = 8 // Blockchain is corrupt.
ExitGraceful = 9 // Graceful shutdown.
ExitParamApiKeyInvalid = 10 // API key parameter is invalid.
STATUS_CONTROL_C_EXIT = 0xC000013A // The application terminated as a result of a CTRL+C. This is a Windows NTSTATUS value.
)