Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func E ¶
func E(args ...interface{}) error
E is a helper method for filling our Error Struct, it panics if you send anything other than an error, string, Op, or Kind
func LastMessage ¶
LastMessage retrieves the last message on an error chain
Types ¶
type Error ¶
type Error struct { Sn Sn `json:"server,omitempty"` // server name Pkg Pkg `json:"package,omitempty"` // package module Op Op `json:"operation,omitempty"` // operation Kind Kind `json:"kind,omitempty"` // category of errors Err error `json:"err,omitempty"` // the wrapped error Msg string `json:"message,omitempty"` }
Error is a custom Error struct for quickly diagnosing issues with our app
type Op ¶
type Op string
Op is a unique string describing a method or a function Multiple operations can construct a friendly stack tace.
func Operations ¶
Operations is a recursive function for building a trace of operations
Click to show internal directories.
Click to hide internal directories.