Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add GetInitialData rpc #104

Merged
merged 1 commit into from
Jul 25, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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;
}
Loading