Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DisplayASCII ¶
DisplayASCII represents a key as ascii if it only contains safe ascii characters. If it contains unsafe characters, these are replaced by '.' and a hex representation is added to the output. It the first 8 bytes look like a nanosecond UNIX timestamp, that will be shown too. TODO: Support full LS header
func IsCanceled ¶
IsCanceled checks if the context has been canceled.
func SleepContext ¶
SleepContext sleeps for given duration. If the context closes in the meantime, it returns immediately with a context.Canceled error.
func SleepContextPerturb ¶
SleepContextPerturb sleeps for given duration like SleepContent, but it perturbs the duration with a 20% random component to avoid multiple instances running at the exact same time. If the context closes in the meantime, it returns immediately with a context.Canceled error.
Types ¶
This section is empty.