Documentation
¶
Index ¶
- type Context
- func (c *Context) Codec() codec.Codec
- func (c *Context) Debug(msg ...interface{})
- func (c *Context) Debugf(f string, msg ...interface{})
- func (c *Context) Error(msg ...interface{})
- func (c *Context) Errorf(f string, msg ...interface{})
- func (c *Context) Info(msg ...interface{})
- func (c *Context) Infof(f string, msg ...interface{})
- func (c *Context) WithMetadata(service, method string, meta map[string]string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct {
//rpc metadata
*metadata.Metadata
//Trace exists throughout the life cycle of the context
//trace is request flow trace
//it's will be from web client,or generated on initialize
Trace trace.Trace
//Content-Type
ContentType string
}
func Background ¶
func Background() *Context
func FromMetadata ¶
func NewContext ¶ added in v1.0.1
Click to show internal directories.
Click to hide internal directories.