github.com/koko1123/flow-go-1@v0.29.6/engine/ghost/protobuf/ghost.proto (about) 1 syntax = "proto3"; 2 3 package ghost; 4 5 import "google/protobuf/empty.proto"; 6 7 // GhostNodeAPI is the API exposed by the Ghost node 8 service GhostNodeAPI { 9 // SendEvent submits and event to the internal Flow Libp2p network 10 rpc SendEvent(SendEventRequest) returns (google.protobuf.Empty); 11 // Subscribe returns all network messages 12 rpc Subscribe(SubscribeRequest) returns (stream FlowMessage); 13 } 14 15 message SubscribeRequest {} 16 17 message SendEventRequest { 18 string channel_id = 1; 19 bytes message = 2; 20 repeated bytes targetID = 3; 21 } 22 23 message FlowMessage { 24 bytes senderID = 1; 25 bytes message = 2; 26 }