Skip to content

Commit

Permalink
Merge pull request #104 from overmindtech/init-account
Browse files Browse the repository at this point in the history
add GetInitialData rpc
  • Loading branch information
DavidS-ovm authored Jul 25, 2023
2 parents 8d8eb3f + a21ced6 commit a552669
Showing 1 changed file with 21 additions and 8 deletions.
29 changes: 21 additions & 8 deletions snapshots.proto
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,21 @@ syntax = "proto3";
package snapshots;

import "google/protobuf/timestamp.proto";
import "bookmarks.proto";
import "items.proto";

// ___ .---------.._
// ______!fsc!_....-' .g8888888p. '-------....._
// .' // .g8: :8p..---....___ \'.
// | Unnamed // () d88: :88b|==========! !|
// | // 888: :888|==========| !|
// |___ \\_______'T88888888888P''----------'//|
// | \ """"""""""""""""""""""""""""""""""/ |
// | !...._____ .="""=. .[] ____...! |
// | / ! .g$p. ! .[] : |
// | ! : $$$$$ : .[] : |
// | ! ! 'T$P' ! .[] '.|
// | \__ "=._.=" .() __ |
// |___ \\_______'T88888888888P''----------'//|
// | \ """"""""""""""""""""""""""""""""""/ |
// | !...._____ .="""=. .[] ____...! |
// | / ! .g$p. ! .[] : |
// | ! : $$$$$ : .[] : |
// | ! ! 'T$P' ! .[] '.|
// | \__ "=._.=" .() __ |
// |.--' '----._______________________.----' '--.|
// '._____________________________________________.'
// Credit: https://www.asciiart.eu/
Expand All @@ -28,6 +29,9 @@ service SnapshotsService {
rpc GetSnapshot(GetSnapshotRequest) returns (GetSnapshotResponse);
rpc UpdateSnapshot(UpdateSnapshotRequest) returns (UpdateSnapshotResponse);
rpc DeleteSnapshot(DeleteSnapshotRequest) returns (DeleteSnapshotResponse);

// retrieve the initial data for the example change
rpc GetInitialData(GetInitialDataRequest) returns (GetInitialDataResponse);
}

///////////////////////////////////////////////////////////////////////////////
Expand Down Expand Up @@ -81,7 +85,7 @@ message CreateSnapshotRequest {
}

message CreateSnapshotResponse {
// the newly created snapshot
// the newly created snapshot
Snapshot snapshot = 1;
}

Expand Down Expand Up @@ -111,3 +115,12 @@ message DeleteSnapshotRequest {
}

message DeleteSnapshotResponse {}

// get the initial data
message GetInitialDataRequest {
}

message GetInitialDataResponse {
Snapshot blastRadiusSnapshot = 1;
bookmarks.Bookmark changingItemsBookmark = 2;
}

0 comments on commit a552669

Please sign in to comment.