mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-11 19:04:35 +00:00
24 lines
495 B
Protocol Buffer
24 lines
495 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package thumbnail;
|
|
|
|
option go_package = "github.com/micro/services/url/proto;thumbnail";
|
|
|
|
service Thumbnail {
|
|
rpc Screenshot(ScreenshotRequest) returns (ScreenshotResponse) {}
|
|
|
|
}
|
|
|
|
// Create a thumbnail screenshot by passing in a url, height and width
|
|
message ScreenshotRequest {
|
|
string url = 1;
|
|
// width of the browser window. optional
|
|
int32 width = 2;
|
|
// height of the browser window, optional
|
|
int32 height = 3;
|
|
}
|
|
|
|
message ScreenshotResponse {
|
|
string imageURL = 1;
|
|
}
|