Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakePanicTrace ¶
func MakePanicTrace(err interface{}) string
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 RandomSeed ¶
func SecureRandId ¶
like RandId, but uses a crypto/rand for secure random identifiers
func SecureRandIdOrPanic ¶
Types ¶
type Broadcast ¶
type Broadcast struct {
// contains filtered or unexported fields
}
func NewBroadcast ¶
func NewBroadcast() *Broadcast
type Shutdown ¶
A small utility class for managing controlled shutdowns
func NewShutdown ¶
func NewShutdown() *Shutdown
func (*Shutdown) WaitComplete ¶
func (s *Shutdown) WaitComplete()
Click to show internal directories.
Click to hide internal directories.