context

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	*metadata.Metadata

	//tracker exists throughout the life cycle of the context
	Trace trace.Trace `json:"trace"`
}

func Background

func Background() *Context

func FromMetadata

func FromMetadata(b []byte) *Context

func NewConext

func NewConext(service, method, tracing string, meta map[string]string) (*Context, error)

func (*Context) Debug

func (c *Context) Debug(msg ...interface{})

func (*Context) Debugf

func (c *Context) Debugf(f string, msg ...interface{})

func (*Context) Error

func (c *Context) Error(msg ...interface{})

func (*Context) Errorf

func (c *Context) Errorf(f string, msg ...interface{})

func (*Context) Info

func (c *Context) Info(msg ...interface{})

func (*Context) Infof

func (c *Context) Infof(f string, msg ...interface{})

func (*Context) WithMetadata

func (c *Context) WithMetadata(service, method, tracing string, meta map[string]string) error

Jump to

Keyboard shortcuts

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