Skip to content

Commit

Permalink
arduino#1447 - back-end usage scenario
Browse files Browse the repository at this point in the history
Simplify API (remove error)
  • Loading branch information
4ntoine committed Nov 4, 2021
1 parent d13b45b commit b9bebad
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 91 deletions.
124 changes: 40 additions & 84 deletions rpc/cc/arduino/cli/files/v1/files.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 3 additions & 7 deletions rpc/cc/arduino/cli/files/v1/files.proto
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ package cc.arduino.cli.files.v1;

option go_package = "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/files/v1;files";

import "google/rpc/status.proto";

// Arduino Files service API
service FilesService {
// Load file content from the file system
Expand All @@ -40,10 +38,8 @@ message LoadFileRequest {
}

message LoadFileResponse {
oneof message {
bytes content = 1;
google.rpc.Status error = 2;
}
// File content
bytes content = 1;
// is skipped in case of error
ContentType type = 3;
ContentType type = 2;
}

0 comments on commit b9bebad

Please sign in to comment.