MetadataFromContext retrieves the Metadata from the context.
(ctx context.Context)
| 60 | |
| 61 | // MetadataFromContext retrieves the Metadata from the context. |
| 62 | func MetadataFromContext(ctx context.Context) *Metadata { |
| 63 | m, _ := ctx.Value(ctxKey{}).(*Metadata) |
| 64 | return m |
| 65 | } |