github.com/zak-blake/goa@v1.4.1/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  )