Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PanicToError ¶
func PanicToError(fn func()) (err error)
Runs the given function and converts any panic encountered while doing so into an error. Useful for sending to channels that will close
func SecureRandId ¶
like RandId, but uses a crypto/rand for secure random identifiers
Types ¶
type Broadcast ¶
type Broadcast struct {
// contains filtered or unexported fields
}
type Ring ¶
type Shutdown ¶
A small utility class for managing controlled shutdowns
Click to show internal directories.
Click to hide internal directories.