Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Go ¶
Go starts a recoverable goroutine with a new logger (logrus.New()).
Example:
safeutil.Go(func(){...})
func GoL ¶
func GoL(do safe.DoFunc, logger logrus.FieldLogger)
GoL starts a recoverable goroutine with a given logger.
Example:
safeutil.GoL(func(){...}, logger)
func LoggerRecoverHandler ¶
func LoggerRecoverHandler(logger logrus.FieldLogger) safe.RecoverHandler
LoggerRecoverHandler returns a recover handler by the given logger.
Example:
func() { defer safe.HandleCrash(LoggerRecoverHandler(logrus.New())) ... }
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.