Documentation ¶
Index ¶
- Constants
- type Context
- func (c *Context) Deadline() (deadline time.Time, ok bool)
- func (c *Context) Done() <-chan struct{}
- func (c *Context) Err() error
- func (c *Context) Get(key string) (value interface{}, exists bool)
- func (c *Context) GetHTTPStatusCode() int
- func (c *Context) GetRequestID() string
- func (c *Context) Set(key string, value interface{})
- func (c *Context) SetRequestID(logID, requestID string)
- func (c *Context) Value(key interface{}) interface{}
Constants ¶
View Source
const SdkVersion = "1.1.3"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
func WarpContext ¶
Deprecated, please use `WrapContext`
func WrapContext ¶ added in v1.1.8
func (*Context) Get ¶
Get returns the value for the given key, ie: (value, true). If the value does not exists it returns (nil, false)
func (*Context) GetHTTPStatusCode ¶
func (*Context) GetRequestID ¶
func (*Context) SetRequestID ¶ added in v1.1.7
Click to show internal directories.
Click to hide internal directories.