Skip to content

Commit

Permalink
docs(context): document keys, errors, and accepted, close gin-gonic#488
Browse files Browse the repository at this point in the history
  • Loading branch information
javierprovecho committed Jul 5, 2017
1 parent e4fd80c commit 42a34cd
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions context.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,15 @@ type Context struct {
handlers HandlersChain
index int8

engine *Engine
Keys map[string]interface{}
Errors errorMsgs
engine *Engine

// Keys is a key/value pair exclusively for the context of each request
Keys map[string]interface{}

// Errors is a list of errors attached to all the handlers/middlewares who used this context
Errors errorMsgs

// Accepted defines a list of manually accepted formats for content negotiation
Accepted []string
}

Expand Down

0 comments on commit 42a34cd

Please sign in to comment.