Category of generalized metric spaces