github.com/brycereitano/goa@v0.0.0-20170315073847-8ffa6c85e265/middleware/context.go (about) 1 package middleware 2 3 // middlewareKey is the private type used for goa middlewares to store values in the context. 4 // It is private to avoid possible collisions with keys used by other packages. 5 type middlewareKey int 6 7 const ( 8 // ReqIDKey is the context key used by the RequestID middleware to store the request ID value. 9 reqIDKey middlewareKey = iota + 1 10 11 // Keys used to record trace in context. 12 traceKey 13 spanKey 14 parentSpanKey 15 )