Documentation ¶
Index ¶
- func AsJsonMarshaller(err error) error
- func Batch(errs []error) error
- func Because(underlying *underlying, cause error, fields ...Field) error
- func CausedBy(src error, target error, deepFirst bool) bool
- func CausedByNode(src error, target error, deepFirst bool, causeReceiver *error) (isCausedBy bool)
- func Data(src error, key string, r bool) (interface{}, bool)
- func From(src interface{}) error
- func HasData(src error, key string, r bool) bool
- func Is(err error, target error) bool
- func New(code, msg string) *underlying
- func NewSysErr(message string) error
- func NewSysErrf(message string, args ...interface{}) error
- func NewUnderlying(code, message string) *underlying
- func Note(err error, fields ...Field) error
- func OnCreateMsg(filter MsgFilter)
- func Unbatch(errs error) ([]error, bool)
- type BatchErrors
- type ComparableErr
- type Field
- func Any(key string, value interface{}) Field
- func Array(key string, val zapcore.ArrayMarshaler) Field
- func Binary(key string, val []byte) Field
- func Bool(key string, val bool) Field
- func Boolp(key string, val *bool) Field
- func Bools(key string, bs []bool) Field
- func ByteString(key string, val []byte) Field
- func ByteStrings(key string, bss [][]byte) Field
- func Complex128(key string, val complex128) Field
- func Complex128p(key string, val *complex128) Field
- func Complex128s(key string, nums []complex128) Field
- func Complex64(key string, val complex64) Field
- func Complex64p(key string, val *complex64) Field
- func Complex64s(key string, nums []complex64) Field
- func Duration(key string, val time.Duration) Field
- func Durationp(key string, val *time.Duration) Field
- func Durations(key string, ds []time.Duration) Field
- func Error(err error) Field
- func Errors(key string, errs []error) Field
- func Float32(key string, val float32) Field
- func Float32p(key string, val *float32) Field
- func Float32s(key string, nums []float32) Field
- func Float64(key string, val float64) Field
- func Float64p(key string, val *float64) Field
- func Float64s(key string, nums []float64) Field
- func Inline(val zapcore.ObjectMarshaler) Field
- func Int(key string, val int) Field
- func Int16(key string, val int16) Field
- func Int16p(key string, val *int16) Field
- func Int16s(key string, nums []int16) Field
- func Int32(key string, val int32) Field
- func Int32p(key string, val *int32) Field
- func Int32s(key string, nums []int32) Field
- func Int64(key string, val int64) Field
- func Int64p(key string, val *int64) Field
- func Int64s(key string, nums []int64) Field
- func Int8(key string, val int8) Field
- func Int8p(key string, val *int8) Field
- func Int8s(key string, nums []int8) Field
- func Intp(key string, val *int) Field
- func Ints(key string, nums []int) Field
- func NamedError(key string, err error) Field
- func Namespace(key string) Field
- func Object(key string, val zapcore.ObjectMarshaler) Field
- func Reflect(key string, val interface{}) Field
- func Skip() Field
- func Stack(key string) Field
- func StackSkip(key string, skip int) Field
- func String(key string, val string) Field
- func Stringer(key string, val fmt.Stringer) Field
- func Stringp(key string, val *string) Field
- func Strings(key string, ss []string) Field
- func Time(key string, val time.Time) Field
- func Timep(key string, val *time.Time) Field
- func Times(key string, ts []time.Time) Field
- func Uint(key string, val uint) Field
- func Uint16(key string, val uint16) Field
- func Uint16p(key string, val *uint16) Field
- func Uint16s(key string, nums []uint16) Field
- func Uint32(key string, val uint32) Field
- func Uint32p(key string, val *uint32) Field
- func Uint32s(key string, nums []uint32) Field
- func Uint64(key string, val uint64) Field
- func Uint64p(key string, val *uint64) Field
- func Uint64s(key string, nums []uint64) Field
- func Uint8(key string, val uint8) Field
- func Uint8p(key string, val *uint8) Field
- func Uint8s(key string, nums []uint8) Field
- func Uintp(key string, val *uint) Field
- func Uintptr(key string, val uintptr) Field
- func Uintptrp(key string, val *uintptr) Field
- func Uintptrs(key string, us []uintptr) Field
- func Uints(key string, nums []uint) Field
- type Message
- type MsgFilter
- type Tracer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AsJsonMarshaller ¶ added in v0.1.6
func CausedByNode ¶
func NewSysErrf ¶
func NewUnderlying ¶
func NewUnderlying(code, message string) *underlying
func OnCreateMsg ¶ added in v0.1.3
func OnCreateMsg(filter MsgFilter)
Types ¶
type BatchErrors ¶ added in v0.1.7
type BatchErrors []error
func (BatchErrors) Error ¶ added in v0.1.7
func (e BatchErrors) Error() string
func (BatchErrors) MarshalJSON ¶ added in v0.1.7
func (e BatchErrors) MarshalJSON() ([]byte, error)
type ComparableErr ¶
type Field ¶
func ByteString ¶
func ByteStrings ¶
func Complex128 ¶
func Complex128(key string, val complex128) Field
func Complex128p ¶
func Complex128p(key string, val *complex128) Field
func Complex128s ¶
func Complex128s(key string, nums []complex128) Field
func Complex64p ¶
func Complex64s ¶
func Inline ¶
func Inline(val zapcore.ObjectMarshaler) Field
func NamedError ¶
Click to show internal directories.
Click to hide internal directories.