(ctx context.Context, ns string)
| 76 | var namespaceKey = "holds the namespace string" |
| 77 | |
| 78 | func withNamespace(ctx context.Context, ns string) context.Context { |
| 79 | return context.WithValue(ctx, &namespaceKey, ns) |
| 80 | } |
| 81 | |
| 82 | func NamespaceFromContext(ctx context.Context) string { |
| 83 | // If there's no namespace, return the empty string. |
no outgoing calls
no test coverage detected
searching dependent graphs…