Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorHandler ¶
type ErrorHandler struct {
// contains filtered or unexported fields
}
ErrorHandler is used for error handling
func NewErrorHandler ¶
func NewErrorHandler( defaultHandler func(error, ...interface{}) interface{}) *ErrorHandler
NewErrorHandler is used to create a new error handler
func (*ErrorHandler) AddHandler ¶
func (errorHandler *ErrorHandler) AddHandler( handlerFunc func(error, ...interface{}) interface{}, err error)
AddHandler adds a function handler. for the err type of err provided
func (ErrorHandler) Check ¶
func (errorHandler ErrorHandler) Check(err error, data ...interface{}) interface{}
Check will check for error and run the handler of that error's type
type FuncLog ¶
type FuncLog struct {
// contains filtered or unexported fields
}
FuncLog is used to easily log golang function statuses
func NewFuncLog ¶
NewFuncLog will create a new func log
type PanicHandler ¶
type PanicHandler struct {
// contains filtered or unexported fields
}
PanicHandler will be used to handle panics
func NewPanicHandler ¶
func NewPanicHandler(handler func(interface{}, ...interface{})) *PanicHandler
NewPanicHandler is used to create a new panic handler
func (PanicHandler) Check ¶
func (panicHandler PanicHandler) Check(data interface{})
Check will check for panic and execute handler with data
Click to show internal directories.
Click to hide internal directories.