From d3e56499167166db6e8617b8997902f7bb061965 Mon Sep 17 00:00:00 2001 From: Riccardo Balbo Date: Mon, 15 Apr 2024 12:51:19 +0200 Subject: [PATCH] Minor refactoring for generalization --- proto/rpc.proto | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/proto/rpc.proto b/proto/rpc.proto index 0817e92..98596a9 100644 --- a/proto/rpc.proto +++ b/proto/rpc.proto @@ -67,28 +67,28 @@ message RpcJobLog { } message RpcSendSignedEventRequest { - string parentJob = 1; + string groupId = 1; // the group id of the event, will be used for gc, etc. If generated by a job it should be set to the job id string event = 2; } message RpcSubscribeToEventsRequest { - string parentJob = 1; + string groupId = 1; // the group id of the event, will be used for gc, etc. If generated by a job it should be set to the job id repeated string filters = 2; } message RpcSubscribeToEventsResponse{ - string parentJob = 1; + string groupId = 1; // the group id of the event, will be used for gc, etc. If generated by a job it should be set to the job id string subscriptionId = 2; } message RpcGetEventsRequest { - string parentJob = 1; + string groupId = 1; // the group id of the event, will be used for gc, etc. If generated by a job it should be set to the job id string subscriptionId = 2; uint32 limit = 3; // optional : 0 or unset means no limit } message RpcGetEventsResponse { - string parentJob = 1; + string groupId = 1; // the group id of the event, will be used for gc, etc. If generated by a job it should be set to the job id uint32 count = 2; string subscriptionId = 3; repeated string events = 4; @@ -96,12 +96,12 @@ message RpcGetEventsResponse { message RpcSendSignedEventResponse{ - string parentJob = 1; + string groupId = 1; // the group id of the event, will be used for gc, etc. If generated by a job it should be set to the job id bool success = 2; } message RpcUnsubscribeFromEventsRequest{ - string parentJob = 1; + string groupId = 1; // the group id of the event, will be used for gc, etc. If generated by a job it should be set to the job id string subscriptionId = 2; } @@ -133,7 +133,7 @@ message RpcAnnounceTemplateResponse { uint64 refreshInterval = 4; } -service NostrConnector { +service PoolConnector { // job management rpc requestJob (RpcRequestJob) returns (Job); rpc getJob (RpcGetJob) returns (Job);