Documentation ¶
Index ¶
- Variables
- type Context
- func (c *Context) AppendJob(job *async.Job)
- func (c *Context) AsyncCreationTime() *time.Time
- func (c *Context) AsyncElapsed() time.Duration
- func (c *Context) AsyncEndTime() *time.Time
- func (c *Context) AsyncStatus() string
- func (c *Context) Elapsed() time.Duration
- func (c *Context) EndTime() time.Time
- func (c *Context) SetValue(key string, value interface{})
- func (c *Context) Value(key string) (interface{}, bool)
Constants ¶
This section is empty.
Variables ¶
View Source
var ContextKey = contextKey("context")
View Source
var ErrorKey = errorKey("error")
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct { StartTime time.Time IgnoreEmptyQueryParameters bool StatusCode int // contains filtered or unexported fields }
Context represents an execution context
func GetContext ¶
func NewContext ¶
func NewContext() *Context
func (*Context) AsyncCreationTime ¶
func (*Context) AsyncElapsed ¶
func (*Context) AsyncEndTime ¶
func (*Context) AsyncStatus ¶
Click to show internal directories.
Click to hide internal directories.