Documentation
¶
Index ¶
- type Context
- func (c *Context) ClientIP() string
- func (c *Context) Clone(service, method string, meta map[string]string) (*Context, error)
- 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) Get(key string) interface{}
- func (c *Context) GetHeader(key string) string
- func (c *Context) GetSetupData() []byte
- func (c *Context) Info(msg ...interface{})
- func (c *Context) Infof(f string, msg ...interface{})
- func (c *Context) Set(key string, value interface{})
- func (c *Context) SetCodec()
- func (c *Context) SetHeader(key, value string)
- func (c *Context) SetSetupData(value []byte)
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
IsPutFile bool
RemoteAddr string
// contains filtered or unexported fields
}
func Background ¶
func Background() *Context
func (*Context) GetSetupData ¶ added in v1.1.17
func (*Context) SetSetupData ¶ added in v1.1.17
Click to show internal directories.
Click to hide internal directories.