github.com/InjectiveLabs/sdk-go@v1.53.0/exchange/health_rpc/pb/goadesign_goagen_health.pb.go (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 // Code generated by protoc-gen-go. DO NOT EDIT. 9 // versions: 10 // protoc-gen-go v1.30.0 11 // protoc v3.19.4 12 // source: goadesign_goagen_health.proto 13 14 package api_v1pb 15 16 import ( 17 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 18 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 19 reflect "reflect" 20 sync "sync" 21 ) 22 23 const ( 24 // Verify that this generated code is sufficiently up-to-date. 25 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 26 // Verify that runtime/protoimpl is sufficiently up-to-date. 27 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 28 ) 29 30 type GetStatusRequest struct { 31 state protoimpl.MessageState 32 sizeCache protoimpl.SizeCache 33 unknownFields protoimpl.UnknownFields 34 } 35 36 func (x *GetStatusRequest) Reset() { 37 *x = GetStatusRequest{} 38 if protoimpl.UnsafeEnabled { 39 mi := &file_goadesign_goagen_health_proto_msgTypes[0] 40 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 41 ms.StoreMessageInfo(mi) 42 } 43 } 44 45 func (x *GetStatusRequest) String() string { 46 return protoimpl.X.MessageStringOf(x) 47 } 48 49 func (*GetStatusRequest) ProtoMessage() {} 50 51 func (x *GetStatusRequest) ProtoReflect() protoreflect.Message { 52 mi := &file_goadesign_goagen_health_proto_msgTypes[0] 53 if protoimpl.UnsafeEnabled && x != nil { 54 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 55 if ms.LoadMessageInfo() == nil { 56 ms.StoreMessageInfo(mi) 57 } 58 return ms 59 } 60 return mi.MessageOf(x) 61 } 62 63 // Deprecated: Use GetStatusRequest.ProtoReflect.Descriptor instead. 64 func (*GetStatusRequest) Descriptor() ([]byte, []int) { 65 return file_goadesign_goagen_health_proto_rawDescGZIP(), []int{0} 66 } 67 68 type GetStatusResponse struct { 69 state protoimpl.MessageState 70 sizeCache protoimpl.SizeCache 71 unknownFields protoimpl.UnknownFields 72 73 // Status of the response. 74 S string `protobuf:"bytes,1,opt,name=s,proto3" json:"s,omitempty"` 75 // Error message. 76 Errmsg string `protobuf:"bytes,2,opt,name=errmsg,proto3" json:"errmsg,omitempty"` 77 Data *HealthStatus `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` 78 Status string `protobuf:"bytes,4,opt,name=status,proto3" json:"status,omitempty"` 79 } 80 81 func (x *GetStatusResponse) Reset() { 82 *x = GetStatusResponse{} 83 if protoimpl.UnsafeEnabled { 84 mi := &file_goadesign_goagen_health_proto_msgTypes[1] 85 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 86 ms.StoreMessageInfo(mi) 87 } 88 } 89 90 func (x *GetStatusResponse) String() string { 91 return protoimpl.X.MessageStringOf(x) 92 } 93 94 func (*GetStatusResponse) ProtoMessage() {} 95 96 func (x *GetStatusResponse) ProtoReflect() protoreflect.Message { 97 mi := &file_goadesign_goagen_health_proto_msgTypes[1] 98 if protoimpl.UnsafeEnabled && x != nil { 99 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 100 if ms.LoadMessageInfo() == nil { 101 ms.StoreMessageInfo(mi) 102 } 103 return ms 104 } 105 return mi.MessageOf(x) 106 } 107 108 // Deprecated: Use GetStatusResponse.ProtoReflect.Descriptor instead. 109 func (*GetStatusResponse) Descriptor() ([]byte, []int) { 110 return file_goadesign_goagen_health_proto_rawDescGZIP(), []int{1} 111 } 112 113 func (x *GetStatusResponse) GetS() string { 114 if x != nil { 115 return x.S 116 } 117 return "" 118 } 119 120 func (x *GetStatusResponse) GetErrmsg() string { 121 if x != nil { 122 return x.Errmsg 123 } 124 return "" 125 } 126 127 func (x *GetStatusResponse) GetData() *HealthStatus { 128 if x != nil { 129 return x.Data 130 } 131 return nil 132 } 133 134 func (x *GetStatusResponse) GetStatus() string { 135 if x != nil { 136 return x.Status 137 } 138 return "" 139 } 140 141 // Status defines the structure for health information 142 type HealthStatus struct { 143 state protoimpl.MessageState 144 sizeCache protoimpl.SizeCache 145 unknownFields protoimpl.UnknownFields 146 147 // Block height from local mongo exchange db. 148 LocalHeight int32 `protobuf:"zigzag32,1,opt,name=local_height,json=localHeight,proto3" json:"local_height,omitempty"` 149 // block timestamp from local mongo exchange db. 150 LocalTimestamp int32 `protobuf:"zigzag32,2,opt,name=local_timestamp,json=localTimestamp,proto3" json:"local_timestamp,omitempty"` 151 // block height from Horacle service. 152 HoracleHeight int32 `protobuf:"zigzag32,3,opt,name=horacle_height,json=horacleHeight,proto3" json:"horacle_height,omitempty"` 153 // block timestamp from Horacle service. 154 HoracleTimestamp int32 `protobuf:"zigzag32,4,opt,name=horacle_timestamp,json=horacleTimestamp,proto3" json:"horacle_timestamp,omitempty"` 155 } 156 157 func (x *HealthStatus) Reset() { 158 *x = HealthStatus{} 159 if protoimpl.UnsafeEnabled { 160 mi := &file_goadesign_goagen_health_proto_msgTypes[2] 161 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 162 ms.StoreMessageInfo(mi) 163 } 164 } 165 166 func (x *HealthStatus) String() string { 167 return protoimpl.X.MessageStringOf(x) 168 } 169 170 func (*HealthStatus) ProtoMessage() {} 171 172 func (x *HealthStatus) ProtoReflect() protoreflect.Message { 173 mi := &file_goadesign_goagen_health_proto_msgTypes[2] 174 if protoimpl.UnsafeEnabled && x != nil { 175 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 176 if ms.LoadMessageInfo() == nil { 177 ms.StoreMessageInfo(mi) 178 } 179 return ms 180 } 181 return mi.MessageOf(x) 182 } 183 184 // Deprecated: Use HealthStatus.ProtoReflect.Descriptor instead. 185 func (*HealthStatus) Descriptor() ([]byte, []int) { 186 return file_goadesign_goagen_health_proto_rawDescGZIP(), []int{2} 187 } 188 189 func (x *HealthStatus) GetLocalHeight() int32 { 190 if x != nil { 191 return x.LocalHeight 192 } 193 return 0 194 } 195 196 func (x *HealthStatus) GetLocalTimestamp() int32 { 197 if x != nil { 198 return x.LocalTimestamp 199 } 200 return 0 201 } 202 203 func (x *HealthStatus) GetHoracleHeight() int32 { 204 if x != nil { 205 return x.HoracleHeight 206 } 207 return 0 208 } 209 210 func (x *HealthStatus) GetHoracleTimestamp() int32 { 211 if x != nil { 212 return x.HoracleTimestamp 213 } 214 return 0 215 } 216 217 var File_goadesign_goagen_health_proto protoreflect.FileDescriptor 218 219 var file_goadesign_goagen_health_proto_rawDesc = []byte{ 220 0x0a, 0x1d, 0x67, 0x6f, 0x61, 0x64, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x5f, 0x67, 0x6f, 0x61, 0x67, 221 0x65, 0x6e, 0x5f, 0x68, 0x65, 0x61, 0x6c, 0x74, 0x68, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 222 0x06, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x22, 0x12, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x53, 0x74, 223 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x7b, 0x0a, 0x11, 0x47, 224 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 225 0x12, 0x0c, 0x0a, 0x01, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x01, 0x73, 0x12, 0x16, 226 0x0a, 0x06, 0x65, 0x72, 0x72, 0x6d, 0x73, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 227 0x65, 0x72, 0x72, 0x6d, 0x73, 0x67, 0x12, 0x28, 0x0a, 0x04, 0x64, 0x61, 0x74, 0x61, 0x18, 0x03, 228 0x20, 0x01, 0x28, 0x0b, 0x32, 0x14, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x65, 229 0x61, 0x6c, 0x74, 0x68, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x04, 0x64, 0x61, 0x74, 0x61, 230 0x12, 0x16, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 231 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0xae, 0x01, 0x0a, 0x0c, 0x48, 0x65, 0x61, 232 0x6c, 0x74, 0x68, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x21, 0x0a, 0x0c, 0x6c, 0x6f, 0x63, 233 0x61, 0x6c, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x11, 0x52, 234 0x0b, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x27, 0x0a, 0x0f, 235 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 236 0x02, 0x20, 0x01, 0x28, 0x11, 0x52, 0x0e, 0x6c, 0x6f, 0x63, 0x61, 0x6c, 0x54, 0x69, 0x6d, 0x65, 237 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x25, 0x0a, 0x0e, 0x68, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 238 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x11, 0x52, 0x0d, 0x68, 239 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x12, 0x2b, 0x0a, 0x11, 240 0x68, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 241 0x70, 0x18, 0x04, 0x20, 0x01, 0x28, 0x11, 0x52, 0x10, 0x68, 0x6f, 0x72, 0x61, 0x63, 0x6c, 0x65, 242 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x32, 0x4a, 0x0a, 0x06, 0x48, 0x65, 0x61, 243 0x6c, 0x74, 0x68, 0x12, 0x40, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 244 0x12, 0x18, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 245 0x74, 0x75, 0x73, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x19, 0x2e, 0x61, 0x70, 0x69, 246 0x2e, 0x76, 0x31, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x65, 0x73, 247 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x0b, 0x5a, 0x09, 0x2f, 0x61, 0x70, 0x69, 0x2e, 0x76, 0x31, 248 0x70, 0x62, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 249 } 250 251 var ( 252 file_goadesign_goagen_health_proto_rawDescOnce sync.Once 253 file_goadesign_goagen_health_proto_rawDescData = file_goadesign_goagen_health_proto_rawDesc 254 ) 255 256 func file_goadesign_goagen_health_proto_rawDescGZIP() []byte { 257 file_goadesign_goagen_health_proto_rawDescOnce.Do(func() { 258 file_goadesign_goagen_health_proto_rawDescData = protoimpl.X.CompressGZIP(file_goadesign_goagen_health_proto_rawDescData) 259 }) 260 return file_goadesign_goagen_health_proto_rawDescData 261 } 262 263 var file_goadesign_goagen_health_proto_msgTypes = make([]protoimpl.MessageInfo, 3) 264 var file_goadesign_goagen_health_proto_goTypes = []interface{}{ 265 (*GetStatusRequest)(nil), // 0: api.v1.GetStatusRequest 266 (*GetStatusResponse)(nil), // 1: api.v1.GetStatusResponse 267 (*HealthStatus)(nil), // 2: api.v1.HealthStatus 268 } 269 var file_goadesign_goagen_health_proto_depIdxs = []int32{ 270 2, // 0: api.v1.GetStatusResponse.data:type_name -> api.v1.HealthStatus 271 0, // 1: api.v1.Health.GetStatus:input_type -> api.v1.GetStatusRequest 272 1, // 2: api.v1.Health.GetStatus:output_type -> api.v1.GetStatusResponse 273 2, // [2:3] is the sub-list for method output_type 274 1, // [1:2] is the sub-list for method input_type 275 1, // [1:1] is the sub-list for extension type_name 276 1, // [1:1] is the sub-list for extension extendee 277 0, // [0:1] is the sub-list for field type_name 278 } 279 280 func init() { file_goadesign_goagen_health_proto_init() } 281 func file_goadesign_goagen_health_proto_init() { 282 if File_goadesign_goagen_health_proto != nil { 283 return 284 } 285 if !protoimpl.UnsafeEnabled { 286 file_goadesign_goagen_health_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 287 switch v := v.(*GetStatusRequest); i { 288 case 0: 289 return &v.state 290 case 1: 291 return &v.sizeCache 292 case 2: 293 return &v.unknownFields 294 default: 295 return nil 296 } 297 } 298 file_goadesign_goagen_health_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 299 switch v := v.(*GetStatusResponse); i { 300 case 0: 301 return &v.state 302 case 1: 303 return &v.sizeCache 304 case 2: 305 return &v.unknownFields 306 default: 307 return nil 308 } 309 } 310 file_goadesign_goagen_health_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 311 switch v := v.(*HealthStatus); i { 312 case 0: 313 return &v.state 314 case 1: 315 return &v.sizeCache 316 case 2: 317 return &v.unknownFields 318 default: 319 return nil 320 } 321 } 322 } 323 type x struct{} 324 out := protoimpl.TypeBuilder{ 325 File: protoimpl.DescBuilder{ 326 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 327 RawDescriptor: file_goadesign_goagen_health_proto_rawDesc, 328 NumEnums: 0, 329 NumMessages: 3, 330 NumExtensions: 0, 331 NumServices: 1, 332 }, 333 GoTypes: file_goadesign_goagen_health_proto_goTypes, 334 DependencyIndexes: file_goadesign_goagen_health_proto_depIdxs, 335 MessageInfos: file_goadesign_goagen_health_proto_msgTypes, 336 }.Build() 337 File_goadesign_goagen_health_proto = out.File 338 file_goadesign_goagen_health_proto_rawDesc = nil 339 file_goadesign_goagen_health_proto_goTypes = nil 340 file_goadesign_goagen_health_proto_depIdxs = nil 341 }