(ctx context.Context)
| 28 | var notificationRegistryCtxKey notificationRegistryCtxKeyType |
| 29 | |
| 30 | func notificationRegistryFromContext(ctx context.Context) (NotificationRegistry, bool) { |
| 31 | reg, ok := ctx.Value(notificationRegistryCtxKey).(NotificationRegistry) |
| 32 | return reg, ok |
| 33 | } |
| 34 | |
| 35 | func newContextWithNotificationRegistry(parent context.Context, reg NotificationRegistry) context.Context { |
| 36 | return context.WithValue(parent, notificationRegistryCtxKey, reg) |
no test coverage detected