syntax = "proto3";

package protobuf;

option go_package = "../pb";

service Service {
  rpc Download (Request) returns (stream Response);
}

message Request {
  string bucketID = 1;
  string objectName = 2;
}

message Response {
  bytes data = 1;
  int64 errorCode = 2;
  string errorMsg = 3;
}