mirror of
https://github.com/status-im/go-waku.git
synced 2025-01-17 01:00:54 +00:00
3d8aae5b81
- Partially implements #20. Requires some tests - Extracts wakurelay code to separate file - Extracts request id gen to separate file - Initial implementation of lightpush protocol - Adds utils functions to obtain a message hash - Publish receives a context to send a message
22 lines
349 B
Protocol Buffer
22 lines
349 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package pb;
|
|
|
|
import "waku_message.proto";
|
|
|
|
message PushRequest {
|
|
string pubsub_topic = 1;
|
|
WakuMessage message = 2;
|
|
}
|
|
|
|
message PushResponse {
|
|
bool is_success = 1;
|
|
// Error messages, etc
|
|
string info = 2;
|
|
}
|
|
|
|
message PushRPC {
|
|
string request_id = 1;
|
|
PushRequest query = 2;
|
|
PushResponse response = 3;
|
|
} |