mirror of
https://github.com/logos-messaging/waku-proto.git
synced 2026-04-18 11:43:10 +00:00
feat(waku2-filter): add waku v2 filter protocol v2beta1 wire format
This commit is contained in:
parent
5c039cdc9d
commit
422c6ff737
27
waku/filter/v2beta1/filter.proto
Normal file
27
waku/filter/v2beta1/filter.proto
Normal file
@ -0,0 +1,27 @@
|
||||
syntax = "proto3";
|
||||
|
||||
// 12/WAKU2-FILTER rfc: https://rfc.vac.dev/spec/12/
|
||||
// Protocol identifier: /vac/waku/filter/2.0.0-beta1
|
||||
package waku.filter.v2beta1;
|
||||
|
||||
import "waku/message/v1/message.proto";
|
||||
|
||||
message FilterRequest {
|
||||
message ContentFilter {
|
||||
string content_topic = 1;
|
||||
}
|
||||
|
||||
bool subscribe = 1;
|
||||
string topic = 2;
|
||||
repeated ContentFilter content_filters = 3;
|
||||
}
|
||||
|
||||
message MessagePush {
|
||||
repeated waku.message.v1.WakuMessage messages = 1;
|
||||
}
|
||||
|
||||
message FilterRpc {
|
||||
string request_id = 1;
|
||||
optional FilterRequest request = 2;
|
||||
optional MessagePush push = 3;
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user