with Factor adds the factor id to the context.
(ctx context.Context, f *models.Factor)
| 72 | |
| 73 | // with Factor adds the factor id to the context. |
| 74 | func withFactor(ctx context.Context, f *models.Factor) context.Context { |
| 75 | return context.WithValue(ctx, factorKey, f) |
| 76 | } |
| 77 | |
| 78 | // getUser reads the user from the context. |
| 79 | func getUser(ctx context.Context) *models.User { |
no outgoing calls
no test coverage detected
searching dependent graphs…