(ctx context.Context)
| 14 | const RequestIDHeader = "X-Request-ID" |
| 15 | |
| 16 | func RequestIDFromContext(ctx context.Context) string { |
| 17 | if v := ctx.Value(RequestIDHeader); v != nil { |
| 18 | return v.(string) |
| 19 | } |
| 20 | return "" |
| 21 | } |
| 22 | |
| 23 | type Error struct { |
| 24 | Type string `json:"type"` |
no test coverage detected