Skip to content

Commit

Permalink
feat: add BertyAccount.ImportWithProgress alternative endpoint
Browse files Browse the repository at this point in the history
Signed-off-by: Manfred Touron <94029+moul@users.noreply.github.com>
  • Loading branch information
moul committed Jul 11, 2021
1 parent 014a7f3 commit 57610ce
Show file tree
Hide file tree
Showing 14 changed files with 1,568 additions and 187 deletions.
17 changes: 17 additions & 0 deletions api/bertyaccount.proto
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ service AccountService {
// ImportAccount imports existing data.
rpc ImportAccount (ImportAccount.Request) returns (ImportAccount.Reply);

// ImportAccount imports existing data.
rpc ImportAccountWithProgress (ImportAccountWithProgress.Request) returns (stream ImportAccountWithProgress.Reply);

// CreateAccount creates a new account.
rpc CreateAccount (CreateAccount.Request) returns (CreateAccount.Reply);

Expand Down Expand Up @@ -124,6 +127,20 @@ message ImportAccount {
}
}

message ImportAccountWithProgress {
message Request {
string account_id = 1 [(gogoproto.customname) = "AccountID"];
string account_name = 2;
string backup_path = 3;
repeated string args = 4;
string logger_filters = 5;
}
message Reply {
berty.protocol.v1.Progress progress = 1;
AccountMetadata account_metadata = 2;
}
}

message CreateAccount {
message Request {
string account_id = 1 [(gogoproto.customname) = "AccountID"];
Expand Down
20 changes: 0 additions & 20 deletions docs/apis/messengertypes.md

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

44 changes: 0 additions & 44 deletions docs/apis/messengertypes.swagger.json

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

6 changes: 3 additions & 3 deletions docs/gen.sum

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

2 changes: 1 addition & 1 deletion go/gen.sum

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

Loading

0 comments on commit 57610ce

Please sign in to comment.