withTargetUser adds the target user for linking to the context.
(ctx context.Context, u *models.User)
| 67 | |
| 68 | // withTargetUser adds the target user for linking to the context. |
| 69 | func withTargetUser(ctx context.Context, u *models.User) context.Context { |
| 70 | return context.WithValue(ctx, targetUserKey, u) |
| 71 | } |
| 72 | |
| 73 | // with Factor adds the factor id to the context. |
| 74 | func withFactor(ctx context.Context, f *models.Factor) context.Context { |
no outgoing calls