func UserClientFrom(ctx context.Context) (client.Interface, bool) { userClient, ok := ctx.Value(userClientKey).(client.Interface) return userClient, ok }
func DeferredErrorsFrom(ctx context.Context) (deferredErrors, bool) { errs, ok := ctx.Value(deferredErrorsKey).(deferredErrors) return errs, ok }
func UserClientFrom(ctx context.Context) (*client.Client, bool) { userClient, ok := ctx.Value(userClientKey).(*client.Client) return userClient, ok }
func AuthPerformed(ctx context.Context) bool { authPerformed, ok := ctx.Value(authPerformedKey).(bool) return ok && authPerformed }
func RepositoryFrom(ctx context.Context) (repo *repository, found bool) { repo, found = ctx.Value(repositoryKey).(*repository) return }