2021-05-12 22:57:08 -07:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
|
|
package publicrpc.v1;
|
|
|
|
|
2021-05-26 12:07:59 -07:00
|
|
|
option go_package = "github.com/certusone/wormhole/bridge/pkg/proto/publicrpc/v1;publicrpcv1";
|
2021-05-12 22:57:08 -07:00
|
|
|
|
2021-07-30 15:12:28 -07:00
|
|
|
import "gossip/v1/gossip.proto";
|
2021-07-30 16:18:53 -07:00
|
|
|
import "google/api/annotations.proto";
|
2021-05-12 22:57:08 -07:00
|
|
|
|
|
|
|
// Publicrpc service exposes endpoints to be consumed externally; GUIs, historical record keeping, etc.
|
|
|
|
service Publicrpc {
|
|
|
|
// GetRawHeartbeats rpc endpoint returns a stream of the p2p heartbeat messages received.
|
|
|
|
// The GetRawHeartbeats stream will include all messages received by the guardian,
|
|
|
|
// without any filtering or verification of message content.
|
2021-07-30 16:18:53 -07:00
|
|
|
rpc GetRawHeartbeats (GetRawHeartbeatsRequest) returns (stream gossip.v1.Heartbeat) {
|
|
|
|
option (google.api.http) = {
|
|
|
|
get: "/v1/heartbeats:stream_raw"
|
|
|
|
};
|
|
|
|
};
|
2021-05-12 22:57:08 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
message GetRawHeartbeatsRequest {
|
|
|
|
}
|