withAdminUser adds the admin user to the context.
(ctx context.Context, u *models.User)
| 212 | |
| 213 | // withAdminUser adds the admin user to the context. |
| 214 | func withAdminUser(ctx context.Context, u *models.User) context.Context { |
| 215 | return context.WithValue(ctx, adminUserKey, u) |
| 216 | } |
| 217 | |
| 218 | // getAdminUser reads the admin user from the context. |
| 219 | func getAdminUser(ctx context.Context) *models.User { |
no outgoing calls
no test coverage detected
searching dependent graphs…