Skip to content

Commit

Permalink
fumarole: added ListConsumerGroups,DeleteConsumerGroup and (#500)
Browse files Browse the repository at this point in the history
  • Loading branch information
lvboudre authored Dec 17, 2024
1 parent fe7d83e commit 663fa6a
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions yellowstone-grpc-proto/proto/fumarole.proto
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,44 @@ import public "geyser.proto";
package fumarole;

service Fumarole {
rpc GetConsumerGroupInfo(GetConsumerGroupInfoRequest) returns (ConsumerGroupInfo) {}
rpc ListConsumerGroups(ListConsumerGroupsRequest) returns (ListConsumerGroupsResponse) {}
rpc DeleteConsumerGroup(DeleteConsumerGroupRequest) returns (DeleteConsumerGroupResponse) {}
rpc CreateStaticConsumerGroup(CreateStaticConsumerGroupRequest) returns (CreateStaticConsumerGroupResponse) {}
rpc Subscribe(stream SubscribeRequest) returns (stream geyser.SubscribeUpdate) {}
rpc GetSlotLagInfo(GetSlotLagInfoRequest) returns (GetSlotLagInfoResponse) {}
}

message GetConsumerGroupInfoRequest {
string consumer_group_label = 1;
}


message DeleteConsumerGroupRequest {
string consumer_group_label = 1;
}

message DeleteConsumerGroupResponse {
bool success = 1;
}

message ListConsumerGroupsRequest {}

message ListConsumerGroupsResponse {
repeated ConsumerGroupInfo consumer_groups = 1;
}


message ConsumerGroupInfo {
string id = 1;
string consumer_group_label = 2;
ConsumerGroupType consumer_group_type = 3;
uint32 member_count = 4;
geyser.CommitmentLevel commitment_level = 5;
EventSubscriptionPolicy event_subscription_policy = 6;
bool is_stale = 7;
}

message GetSlotLagInfoRequest {
string consumer_group_label = 1;
}
Expand All @@ -32,6 +65,10 @@ message CreateStaticConsumerGroupResponse {
string group_id = 1;
}

enum ConsumerGroupType {
STATIC = 0;
}

enum InitialOffsetPolicy {
EARLIEST = 0;
LATEST = 1;
Expand Down

0 comments on commit 663fa6a

Please sign in to comment.