Commit 826ebdf4 authored by Giorgio Azzinnaro's avatar Giorgio Azzinnaro

added Key message

parent a733e551
......@@ -28,6 +28,9 @@ option objc_class_prefix = "PDB";
import "google/protobuf/any.proto";
// FIXME Can't use profanedb/protobuf/storage.proto because generation happens directly in this folder
import "storage.proto";
service Db {
rpc Get (GetReq) returns (GetResp);
......@@ -37,7 +40,7 @@ service Db {
}
message GetReq {
string key = 1; // TODO How about getting multiple objects at one
Key key = 1; // TODO How about getting multiple objects at once
}
message GetResp {
......@@ -49,11 +52,11 @@ message PutReq {
}
message PutResp {
string key = 1; // TODO Maybe should be repeated for all stored keys?
Key key = 1; // TODO Maybe should be repeated for all stored keys?
}
message DelReq {
string key = 1;
Key key = 1;
}
message DelResp {
......
/*
* ProfaneDB - A Protocol Buffers database.
* Copyright (C) 2017 "Giorgio Azzinnaro" <giorgio.azzinnaro@gmail.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
syntax = "proto3";
package profanedb.protobuf;
option go_package = "gitlab.com/profanedb/protobuf/db";
option csharp_namespace = "ProfaneDB.Protobuf";
option java_package = "com.profanedb.protobuf";
option objc_class_prefix = "PDB";
// A Key uniquely identifies a message stored in the database
message Key {
string type = 1;
bytes value = 2;
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment