ContextWithExternalDependency creates a contex with the external provided dependencies
(ctx context.Context, edc *ExternalDependencyContext)
| 69 | |
| 70 | // ContextWithExternalDependency creates a contex with the external provided dependencies |
| 71 | func ContextWithExternalDependency(ctx context.Context, edc *ExternalDependencyContext) context.Context { |
| 72 | return context.WithValue(ctx, (*ExternalDependencyContext)(nil), edc) |
| 73 | } |
| 74 | |
| 75 | // ExternalDependencyContextFromContext returns the external dependencies context or nil |
| 76 | func ExternalDependencyContextFromContext(ctx context.Context) *ExternalDependencyContext { |
searching dependent graphs…