syntax = "proto3"; package images.v1; option go_package = "github.com/tigorlazuardi/bluemage/go/gen/proto/images/v1"; service ImageService { rpc RecentlyAddedImages(RecentlyAddedImagesRequest) returns (RecentlyAddedImagesResponse) {} } message RecentlyAddedImagesRequest { int32 limit = 1; } message RecentlyAddedImagesResponse { repeated GetImageResponse images = 1; } message GetImageRequest { int32 id = 1; } message GetImageResponse { int32 id = 1; string subreddit = 2; string device = 3; string post_title = 4; string post_url = 5; int64 post_created = 6; string post_author = 7; string post_author_url = 8; string image_relative_path = 9; string image_original_url = 10; uint32 image_height = 11; uint32 image_width = 12; int64 image_size = 13; }