Documentation ¶
Index ¶
Constants ¶
View Source
const ( StorePrefixHealth byte = 0 StorePrefixMessages byte = 1 StorePrefixMessageMetadata byte = 2 StorePrefixMilestones byte = 3 StorePrefixChildren byte = 4 StorePrefixSnapshot byte = 5 StorePrefixUnreferencedMessages byte = 6 StorePrefixIndexation byte = 7 StorePrefixUTXO byte = 8 StorePrefixAutopeering byte = 9 )
Variables ¶
View Source
var ( // ErrOperationAborted is returned when the operation was aborted e.g. by a shutdown signal. ErrOperationAborted = errors.New("operation was aborted") // ErrMessageNotFound is returned when a message was not found. ErrMessageNotFound = errors.New("message not found") // ErrNodeNotSynced is returned when the node is not synchronized. ErrNodeNotSynced = errors.New("node is not synchronized") // ErrNodeLoadTooHigh is returned when the load on the node is too high. ErrNodeLoadTooHigh = errors.New("node load is too high") )
Functions ¶
func CriticalError ¶
CriticalError wraps the given error as a critical error.
func IsCriticalError ¶
IsCritical unwraps the inner error held by the critical error if the given error is a critical error. If the given error is not a critical error, nil is returned.
func IsSoftError ¶
IsSoftError unwraps the inner error held by the soft error if the given error is a soft error. If the given error is not a soft error, nil is returned.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.