syntax = "proto3";

import "entity/request.proto";
import "entity/response.proto";
import "entity/stream_message.proto";

package grpc;
option go_package = ".;grpc";

service NodeService {
  rpc Register(Request) returns (Response){};
  rpc SendHeartbeat(Request) returns (Response){};
  rpc Ping(Request) returns (Response){};
  rpc Subscribe(Request) returns (stream StreamMessage){};
  rpc Unsubscribe(Request) returns (Response){};
}
