errctx

package
v0.0.0-...-8495beb Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2022 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Unwrap

func Unwrap(err error) map[string]string

Unwrap pulls out any contextual metadata stored within an error.

func WithMeta

func WithMeta(ctx context.Context, kv ...string) context.Context

WithMeta wraps a context with some arbitrary string based key-value metadata.

func Wrap

func Wrap(err error, ctx context.Context, kv ...string) error

Wrap wraps an error with the metadata stored in the context using `WithMeta`. You can also pass in additional key-value strings for some extra information.

Types

This section is empty.

Jump to

Keyboard shortcuts

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