feat: move core to tui and begin grpc work
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
@@ -3,14 +3,45 @@ syntax = "proto3";
|
||||
package hyperlog;
|
||||
|
||||
service Graph {
|
||||
rpc SayHello (HelloRequest) returns (HelloReply);
|
||||
rpc Get(GetRequest) returns (GetReply);
|
||||
}
|
||||
|
||||
message HelloRequest {
|
||||
string name = 1;
|
||||
|
||||
message UserGraphItem {
|
||||
map<string, GraphItem> items = 1;
|
||||
|
||||
}
|
||||
message SectionGraphItem {
|
||||
map<string, GraphItem> items = 1;
|
||||
}
|
||||
|
||||
message HelloReply {
|
||||
string message = 1;
|
||||
enum ItemState {
|
||||
UNSPECIFIED = 0;
|
||||
NOT_DONE = 1;
|
||||
DONE = 2;
|
||||
}
|
||||
|
||||
message ItemGraphItem {
|
||||
string title = 1;
|
||||
string description = 2;
|
||||
ItemState state = 3;
|
||||
}
|
||||
|
||||
message GraphItem {
|
||||
string path = 1;
|
||||
oneof contents {
|
||||
UserGraphItem user = 2;
|
||||
SectionGraphItem section = 3;
|
||||
ItemGraphItem item = 4;
|
||||
}
|
||||
}
|
||||
|
||||
message GetRequest {
|
||||
string root = 1;
|
||||
repeated string paths = 2;
|
||||
}
|
||||
|
||||
message GetReply {
|
||||
repeated GraphItem items = 1;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user