recovery

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 3, 2016 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	Version   string
	BuildInfo string

	EmailService *email.Service
}

Service provides unified way of logging and notifying panic events.

func (Service) Recover

func (s Service) Recover()

Recover is a fucntion that recovers from panic, logs and notifies event. It should be used as an argument to defer statement:

   recoveryService := &recovery.Service{...}
   go func() {
       defer recoveryService.Recover()
	   ...
   }

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL