github.com/InjectiveLabs/sdk-go@v1.53.0/exchange/health_rpc/pb/health.proto (about) 1 // Code generated with goa v3.7.0, DO NOT EDIT. 2 // 3 // health protocol buffer definition 4 // 5 // Command: 6 // $ goa gen github.com/InjectiveLabs/injective-indexer/api/design -o ../ 7 8 syntax = "proto3"; 9 10 package api.v1; 11 12 option go_package = "/api.v1pb"; 13 14 // HealthAPI allows to check if backend data is up-to-date and reliable or not. 15 service Health { 16 // Get current backend health status 17 rpc GetStatus (GetStatusRequest) returns (GetStatusResponse); 18 } 19 20 message GetStatusRequest { 21 } 22 23 message GetStatusResponse { 24 // Status of the response. 25 string s = 1; 26 // Error message. 27 string errmsg = 2; 28 HealthStatus data = 3; 29 string status = 4; 30 } 31 // Status defines the structure for health information 32 message HealthStatus { 33 // Block height from local mongo exchange db. 34 sint32 local_height = 1; 35 // block timestamp from local mongo exchange db. 36 sint32 local_timestamp = 2; 37 // block height from Horacle service. 38 sint32 horacle_height = 3; 39 // block timestamp from Horacle service. 40 sint32 horacle_timestamp = 4; 41 }