mirror of https://github.com/gin-gonic/gin.git
docs(context): document keys, errors, and accepted, close #488
This commit is contained in:
parent
e4fd80c627
commit
42a34cdc35
|
@ -49,8 +49,14 @@ type Context struct {
|
||||||
index int8
|
index int8
|
||||||
|
|
||||||
engine *Engine
|
engine *Engine
|
||||||
|
|
||||||
|
// Keys is a key/value pair exclusively for the context of each request
|
||||||
Keys map[string]interface{}
|
Keys map[string]interface{}
|
||||||
|
|
||||||
|
// Errors is a list of errors attached to all the handlers/middlewares who used this context
|
||||||
Errors errorMsgs
|
Errors errorMsgs
|
||||||
|
|
||||||
|
// Accepted defines a list of manually accepted formats for content negotiation
|
||||||
Accepted []string
|
Accepted []string
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue