-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This patch splits the proto file into multiple specialized proto files. This patch also adds a warning that CRUD operations are experimental. Closes #2
- Loading branch information
Showing
7 changed files
with
293 additions
and
267 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
syntax = "proto3"; | ||
|
||
import "aeon_error.proto"; | ||
import "aeon_schema.proto"; | ||
|
||
package aeon; | ||
|
||
option go_package = "github.com/tarantool/aeon/aeon/grpc/server/pb"; | ||
|
||
// DDL API to Aeon - a distributed database based on Tarantool. | ||
service DDLService { | ||
// Creates a space with the given definition. | ||
rpc CreateSpace(CreateSpaceRequest) returns (CreateSpaceResponse) {} | ||
|
||
// Drops a space by name. | ||
rpc DropSpace(DropSpaceRequest) returns (DropSpaceResponse) {} | ||
} | ||
|
||
// Creates a space with the given definition. | ||
|
||
message CreateSpaceRequest { | ||
// Name of the new space. | ||
string name = 1; | ||
// Format of the new space. | ||
repeated FieldDef format = 2; | ||
// Sorting key definition (indexed fields). | ||
repeated KeyPartDef key_def = 3; | ||
} | ||
|
||
message CreateSpaceResponse { | ||
// Error information. Set only on failure. | ||
Error error = 1; | ||
} | ||
|
||
// Drops a space by name. | ||
|
||
message DropSpaceRequest { | ||
// Name of the space to drop. | ||
string name = 1; | ||
} | ||
|
||
message DropSpaceResponse { | ||
// Error information. Set only on failure. | ||
Error error = 1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
syntax = "proto3"; | ||
|
||
import "aeon_error.proto"; | ||
|
||
package aeon; | ||
|
||
option go_package = "github.com/tarantool/aeon/aeon/grpc/server/pb"; | ||
|
||
// Diagnostic API to Aeon - a distributed database based on Tarantool. | ||
service DiagService { | ||
// Pings the router. | ||
rpc Ping(PingRequest) returns (PingResponse) {} | ||
} | ||
|
||
// Pings the router. | ||
|
||
message PingRequest {} | ||
|
||
message PingResponse { | ||
// Error information. Set only on failure. | ||
Error error = 1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
syntax = "proto3"; | ||
|
||
import "aeon_value.proto"; | ||
|
||
package aeon; | ||
|
||
option go_package = "github.com/tarantool/aeon/aeon/grpc/server/pb"; | ||
|
||
// Error information. | ||
message Error { | ||
// Error type. | ||
// * AeonError for core Aeon errors. | ||
// * AeonSQLError for issues with SQL parsing. | ||
// * AeonGRPCError for issues with gRPC encoding. | ||
string type = 1; | ||
// Error name. | ||
string name = 2; | ||
// Error location: file, line. | ||
string file = 3; | ||
uint64 line = 4; | ||
// Human-readable error description. | ||
string msg = 5; | ||
// System errno (usually not set). | ||
uint64 errno = 6; | ||
// Error code. | ||
uint64 code = 7; | ||
// Fields with extra information. | ||
MapValue fields = 8; | ||
// Previous error on the error stack (cause of this error). | ||
Error prev = 9; | ||
} |
Oops, something went wrong.