Skip to content

Instantly share code, notes, and snippets.

@j-griffith
Created December 12, 2024 15:13
Show Gist options
  • Select an option

  • Save j-griffith/a6730e21a2daf544c836942007b6a6d9 to your computer and use it in GitHub Desktop.

Select an option

Save j-griffith/a6730e21a2daf544c836942007b6a6d9 to your computer and use it in GitHub Desktop.
syntax = "proto3";
package proto;
option go_package = "github.com/j-griffith/agent/pkg/proto/";
rpc UploadFileBundle(stream FileChunk) returns (UploadStatus) {}
message FileChunk {
bytes data = 1;
string filename = 2;
string destination = 3;
}
message UploadStatus {
string message = 1;
int32 code = 2;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment