Skip to content

Commit

Permalink
Minor refactoring for generalization
Browse files Browse the repository at this point in the history
  • Loading branch information
riccardobl committed Apr 15, 2024
1 parent 4c46734 commit d3e5649
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions proto/rpc.proto
Original file line number Diff line number Diff line change
Expand Up @@ -67,41 +67,41 @@ 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;
}


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;
}

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit d3e5649

Please sign in to comment.