github.com/micro/go-micro/v2@v2.9.1/debug/service/proto/debug.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // source: debug/service/proto/debug.proto 3 4 package debug 5 6 import ( 7 context "context" 8 fmt "fmt" 9 proto "github.com/golang/protobuf/proto" 10 grpc "google.golang.org/grpc" 11 codes "google.golang.org/grpc/codes" 12 status "google.golang.org/grpc/status" 13 math "math" 14 ) 15 16 // Reference imports to suppress errors if they are not otherwise used. 17 var _ = proto.Marshal 18 var _ = fmt.Errorf 19 var _ = math.Inf 20 21 // This is a compile-time assertion to ensure that this generated file 22 // is compatible with the proto package it is being compiled against. 23 // A compilation error at this line likely means your copy of the 24 // proto package needs to be updated. 25 const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 26 27 type SpanType int32 28 29 const ( 30 SpanType_INBOUND SpanType = 0 31 SpanType_OUTBOUND SpanType = 1 32 ) 33 34 var SpanType_name = map[int32]string{ 35 0: "INBOUND", 36 1: "OUTBOUND", 37 } 38 39 var SpanType_value = map[string]int32{ 40 "INBOUND": 0, 41 "OUTBOUND": 1, 42 } 43 44 func (x SpanType) String() string { 45 return proto.EnumName(SpanType_name, int32(x)) 46 } 47 48 func (SpanType) EnumDescriptor() ([]byte, []int) { 49 return fileDescriptor_df91f41a5db378e6, []int{0} 50 } 51 52 type HealthRequest struct { 53 // optional service name 54 Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"` 55 XXX_NoUnkeyedLiteral struct{} `json:"-"` 56 XXX_unrecognized []byte `json:"-"` 57 XXX_sizecache int32 `json:"-"` 58 } 59 60 func (m *HealthRequest) Reset() { *m = HealthRequest{} } 61 func (m *HealthRequest) String() string { return proto.CompactTextString(m) } 62 func (*HealthRequest) ProtoMessage() {} 63 func (*HealthRequest) Descriptor() ([]byte, []int) { 64 return fileDescriptor_df91f41a5db378e6, []int{0} 65 } 66 67 func (m *HealthRequest) XXX_Unmarshal(b []byte) error { 68 return xxx_messageInfo_HealthRequest.Unmarshal(m, b) 69 } 70 func (m *HealthRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 71 return xxx_messageInfo_HealthRequest.Marshal(b, m, deterministic) 72 } 73 func (m *HealthRequest) XXX_Merge(src proto.Message) { 74 xxx_messageInfo_HealthRequest.Merge(m, src) 75 } 76 func (m *HealthRequest) XXX_Size() int { 77 return xxx_messageInfo_HealthRequest.Size(m) 78 } 79 func (m *HealthRequest) XXX_DiscardUnknown() { 80 xxx_messageInfo_HealthRequest.DiscardUnknown(m) 81 } 82 83 var xxx_messageInfo_HealthRequest proto.InternalMessageInfo 84 85 func (m *HealthRequest) GetService() string { 86 if m != nil { 87 return m.Service 88 } 89 return "" 90 } 91 92 type HealthResponse struct { 93 // default: ok 94 Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` 95 XXX_NoUnkeyedLiteral struct{} `json:"-"` 96 XXX_unrecognized []byte `json:"-"` 97 XXX_sizecache int32 `json:"-"` 98 } 99 100 func (m *HealthResponse) Reset() { *m = HealthResponse{} } 101 func (m *HealthResponse) String() string { return proto.CompactTextString(m) } 102 func (*HealthResponse) ProtoMessage() {} 103 func (*HealthResponse) Descriptor() ([]byte, []int) { 104 return fileDescriptor_df91f41a5db378e6, []int{1} 105 } 106 107 func (m *HealthResponse) XXX_Unmarshal(b []byte) error { 108 return xxx_messageInfo_HealthResponse.Unmarshal(m, b) 109 } 110 func (m *HealthResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 111 return xxx_messageInfo_HealthResponse.Marshal(b, m, deterministic) 112 } 113 func (m *HealthResponse) XXX_Merge(src proto.Message) { 114 xxx_messageInfo_HealthResponse.Merge(m, src) 115 } 116 func (m *HealthResponse) XXX_Size() int { 117 return xxx_messageInfo_HealthResponse.Size(m) 118 } 119 func (m *HealthResponse) XXX_DiscardUnknown() { 120 xxx_messageInfo_HealthResponse.DiscardUnknown(m) 121 } 122 123 var xxx_messageInfo_HealthResponse proto.InternalMessageInfo 124 125 func (m *HealthResponse) GetStatus() string { 126 if m != nil { 127 return m.Status 128 } 129 return "" 130 } 131 132 type StatsRequest struct { 133 // optional service name 134 Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"` 135 XXX_NoUnkeyedLiteral struct{} `json:"-"` 136 XXX_unrecognized []byte `json:"-"` 137 XXX_sizecache int32 `json:"-"` 138 } 139 140 func (m *StatsRequest) Reset() { *m = StatsRequest{} } 141 func (m *StatsRequest) String() string { return proto.CompactTextString(m) } 142 func (*StatsRequest) ProtoMessage() {} 143 func (*StatsRequest) Descriptor() ([]byte, []int) { 144 return fileDescriptor_df91f41a5db378e6, []int{2} 145 } 146 147 func (m *StatsRequest) XXX_Unmarshal(b []byte) error { 148 return xxx_messageInfo_StatsRequest.Unmarshal(m, b) 149 } 150 func (m *StatsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 151 return xxx_messageInfo_StatsRequest.Marshal(b, m, deterministic) 152 } 153 func (m *StatsRequest) XXX_Merge(src proto.Message) { 154 xxx_messageInfo_StatsRequest.Merge(m, src) 155 } 156 func (m *StatsRequest) XXX_Size() int { 157 return xxx_messageInfo_StatsRequest.Size(m) 158 } 159 func (m *StatsRequest) XXX_DiscardUnknown() { 160 xxx_messageInfo_StatsRequest.DiscardUnknown(m) 161 } 162 163 var xxx_messageInfo_StatsRequest proto.InternalMessageInfo 164 165 func (m *StatsRequest) GetService() string { 166 if m != nil { 167 return m.Service 168 } 169 return "" 170 } 171 172 type StatsResponse struct { 173 // timestamp of recording 174 Timestamp uint64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` 175 // unix timestamp 176 Started uint64 `protobuf:"varint,2,opt,name=started,proto3" json:"started,omitempty"` 177 // in seconds 178 Uptime uint64 `protobuf:"varint,3,opt,name=uptime,proto3" json:"uptime,omitempty"` 179 // in bytes 180 Memory uint64 `protobuf:"varint,4,opt,name=memory,proto3" json:"memory,omitempty"` 181 // num threads 182 Threads uint64 `protobuf:"varint,5,opt,name=threads,proto3" json:"threads,omitempty"` 183 // total gc in nanoseconds 184 Gc uint64 `protobuf:"varint,6,opt,name=gc,proto3" json:"gc,omitempty"` 185 // total number of requests 186 Requests uint64 `protobuf:"varint,7,opt,name=requests,proto3" json:"requests,omitempty"` 187 // total number of errors 188 Errors uint64 `protobuf:"varint,8,opt,name=errors,proto3" json:"errors,omitempty"` 189 XXX_NoUnkeyedLiteral struct{} `json:"-"` 190 XXX_unrecognized []byte `json:"-"` 191 XXX_sizecache int32 `json:"-"` 192 } 193 194 func (m *StatsResponse) Reset() { *m = StatsResponse{} } 195 func (m *StatsResponse) String() string { return proto.CompactTextString(m) } 196 func (*StatsResponse) ProtoMessage() {} 197 func (*StatsResponse) Descriptor() ([]byte, []int) { 198 return fileDescriptor_df91f41a5db378e6, []int{3} 199 } 200 201 func (m *StatsResponse) XXX_Unmarshal(b []byte) error { 202 return xxx_messageInfo_StatsResponse.Unmarshal(m, b) 203 } 204 func (m *StatsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 205 return xxx_messageInfo_StatsResponse.Marshal(b, m, deterministic) 206 } 207 func (m *StatsResponse) XXX_Merge(src proto.Message) { 208 xxx_messageInfo_StatsResponse.Merge(m, src) 209 } 210 func (m *StatsResponse) XXX_Size() int { 211 return xxx_messageInfo_StatsResponse.Size(m) 212 } 213 func (m *StatsResponse) XXX_DiscardUnknown() { 214 xxx_messageInfo_StatsResponse.DiscardUnknown(m) 215 } 216 217 var xxx_messageInfo_StatsResponse proto.InternalMessageInfo 218 219 func (m *StatsResponse) GetTimestamp() uint64 { 220 if m != nil { 221 return m.Timestamp 222 } 223 return 0 224 } 225 226 func (m *StatsResponse) GetStarted() uint64 { 227 if m != nil { 228 return m.Started 229 } 230 return 0 231 } 232 233 func (m *StatsResponse) GetUptime() uint64 { 234 if m != nil { 235 return m.Uptime 236 } 237 return 0 238 } 239 240 func (m *StatsResponse) GetMemory() uint64 { 241 if m != nil { 242 return m.Memory 243 } 244 return 0 245 } 246 247 func (m *StatsResponse) GetThreads() uint64 { 248 if m != nil { 249 return m.Threads 250 } 251 return 0 252 } 253 254 func (m *StatsResponse) GetGc() uint64 { 255 if m != nil { 256 return m.Gc 257 } 258 return 0 259 } 260 261 func (m *StatsResponse) GetRequests() uint64 { 262 if m != nil { 263 return m.Requests 264 } 265 return 0 266 } 267 268 func (m *StatsResponse) GetErrors() uint64 { 269 if m != nil { 270 return m.Errors 271 } 272 return 0 273 } 274 275 // LogRequest requests service logs 276 type LogRequest struct { 277 // service to request logs for 278 Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"` 279 // stream records continuously 280 Stream bool `protobuf:"varint,2,opt,name=stream,proto3" json:"stream,omitempty"` 281 // count of records to request 282 Count int64 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"` 283 // relative time in seconds 284 // before the current time 285 // from which to show logs 286 Since int64 `protobuf:"varint,4,opt,name=since,proto3" json:"since,omitempty"` 287 XXX_NoUnkeyedLiteral struct{} `json:"-"` 288 XXX_unrecognized []byte `json:"-"` 289 XXX_sizecache int32 `json:"-"` 290 } 291 292 func (m *LogRequest) Reset() { *m = LogRequest{} } 293 func (m *LogRequest) String() string { return proto.CompactTextString(m) } 294 func (*LogRequest) ProtoMessage() {} 295 func (*LogRequest) Descriptor() ([]byte, []int) { 296 return fileDescriptor_df91f41a5db378e6, []int{4} 297 } 298 299 func (m *LogRequest) XXX_Unmarshal(b []byte) error { 300 return xxx_messageInfo_LogRequest.Unmarshal(m, b) 301 } 302 func (m *LogRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 303 return xxx_messageInfo_LogRequest.Marshal(b, m, deterministic) 304 } 305 func (m *LogRequest) XXX_Merge(src proto.Message) { 306 xxx_messageInfo_LogRequest.Merge(m, src) 307 } 308 func (m *LogRequest) XXX_Size() int { 309 return xxx_messageInfo_LogRequest.Size(m) 310 } 311 func (m *LogRequest) XXX_DiscardUnknown() { 312 xxx_messageInfo_LogRequest.DiscardUnknown(m) 313 } 314 315 var xxx_messageInfo_LogRequest proto.InternalMessageInfo 316 317 func (m *LogRequest) GetService() string { 318 if m != nil { 319 return m.Service 320 } 321 return "" 322 } 323 324 func (m *LogRequest) GetStream() bool { 325 if m != nil { 326 return m.Stream 327 } 328 return false 329 } 330 331 func (m *LogRequest) GetCount() int64 { 332 if m != nil { 333 return m.Count 334 } 335 return 0 336 } 337 338 func (m *LogRequest) GetSince() int64 { 339 if m != nil { 340 return m.Since 341 } 342 return 0 343 } 344 345 // Record is service log record 346 type Record struct { 347 // timestamp of log record 348 Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` 349 // record metadata 350 Metadata map[string]string `protobuf:"bytes,2,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 351 // message 352 Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` 353 XXX_NoUnkeyedLiteral struct{} `json:"-"` 354 XXX_unrecognized []byte `json:"-"` 355 XXX_sizecache int32 `json:"-"` 356 } 357 358 func (m *Record) Reset() { *m = Record{} } 359 func (m *Record) String() string { return proto.CompactTextString(m) } 360 func (*Record) ProtoMessage() {} 361 func (*Record) Descriptor() ([]byte, []int) { 362 return fileDescriptor_df91f41a5db378e6, []int{5} 363 } 364 365 func (m *Record) XXX_Unmarshal(b []byte) error { 366 return xxx_messageInfo_Record.Unmarshal(m, b) 367 } 368 func (m *Record) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 369 return xxx_messageInfo_Record.Marshal(b, m, deterministic) 370 } 371 func (m *Record) XXX_Merge(src proto.Message) { 372 xxx_messageInfo_Record.Merge(m, src) 373 } 374 func (m *Record) XXX_Size() int { 375 return xxx_messageInfo_Record.Size(m) 376 } 377 func (m *Record) XXX_DiscardUnknown() { 378 xxx_messageInfo_Record.DiscardUnknown(m) 379 } 380 381 var xxx_messageInfo_Record proto.InternalMessageInfo 382 383 func (m *Record) GetTimestamp() int64 { 384 if m != nil { 385 return m.Timestamp 386 } 387 return 0 388 } 389 390 func (m *Record) GetMetadata() map[string]string { 391 if m != nil { 392 return m.Metadata 393 } 394 return nil 395 } 396 397 func (m *Record) GetMessage() string { 398 if m != nil { 399 return m.Message 400 } 401 return "" 402 } 403 404 type TraceRequest struct { 405 // trace id to retrieve 406 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` 407 XXX_NoUnkeyedLiteral struct{} `json:"-"` 408 XXX_unrecognized []byte `json:"-"` 409 XXX_sizecache int32 `json:"-"` 410 } 411 412 func (m *TraceRequest) Reset() { *m = TraceRequest{} } 413 func (m *TraceRequest) String() string { return proto.CompactTextString(m) } 414 func (*TraceRequest) ProtoMessage() {} 415 func (*TraceRequest) Descriptor() ([]byte, []int) { 416 return fileDescriptor_df91f41a5db378e6, []int{6} 417 } 418 419 func (m *TraceRequest) XXX_Unmarshal(b []byte) error { 420 return xxx_messageInfo_TraceRequest.Unmarshal(m, b) 421 } 422 func (m *TraceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 423 return xxx_messageInfo_TraceRequest.Marshal(b, m, deterministic) 424 } 425 func (m *TraceRequest) XXX_Merge(src proto.Message) { 426 xxx_messageInfo_TraceRequest.Merge(m, src) 427 } 428 func (m *TraceRequest) XXX_Size() int { 429 return xxx_messageInfo_TraceRequest.Size(m) 430 } 431 func (m *TraceRequest) XXX_DiscardUnknown() { 432 xxx_messageInfo_TraceRequest.DiscardUnknown(m) 433 } 434 435 var xxx_messageInfo_TraceRequest proto.InternalMessageInfo 436 437 func (m *TraceRequest) GetId() string { 438 if m != nil { 439 return m.Id 440 } 441 return "" 442 } 443 444 type TraceResponse struct { 445 Spans []*Span `protobuf:"bytes,1,rep,name=spans,proto3" json:"spans,omitempty"` 446 XXX_NoUnkeyedLiteral struct{} `json:"-"` 447 XXX_unrecognized []byte `json:"-"` 448 XXX_sizecache int32 `json:"-"` 449 } 450 451 func (m *TraceResponse) Reset() { *m = TraceResponse{} } 452 func (m *TraceResponse) String() string { return proto.CompactTextString(m) } 453 func (*TraceResponse) ProtoMessage() {} 454 func (*TraceResponse) Descriptor() ([]byte, []int) { 455 return fileDescriptor_df91f41a5db378e6, []int{7} 456 } 457 458 func (m *TraceResponse) XXX_Unmarshal(b []byte) error { 459 return xxx_messageInfo_TraceResponse.Unmarshal(m, b) 460 } 461 func (m *TraceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 462 return xxx_messageInfo_TraceResponse.Marshal(b, m, deterministic) 463 } 464 func (m *TraceResponse) XXX_Merge(src proto.Message) { 465 xxx_messageInfo_TraceResponse.Merge(m, src) 466 } 467 func (m *TraceResponse) XXX_Size() int { 468 return xxx_messageInfo_TraceResponse.Size(m) 469 } 470 func (m *TraceResponse) XXX_DiscardUnknown() { 471 xxx_messageInfo_TraceResponse.DiscardUnknown(m) 472 } 473 474 var xxx_messageInfo_TraceResponse proto.InternalMessageInfo 475 476 func (m *TraceResponse) GetSpans() []*Span { 477 if m != nil { 478 return m.Spans 479 } 480 return nil 481 } 482 483 type Span struct { 484 // the trace id 485 Trace string `protobuf:"bytes,1,opt,name=trace,proto3" json:"trace,omitempty"` 486 // id of the span 487 Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` 488 // parent span 489 Parent string `protobuf:"bytes,3,opt,name=parent,proto3" json:"parent,omitempty"` 490 // name of the resource 491 Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` 492 // time of start in nanoseconds 493 Started uint64 `protobuf:"varint,5,opt,name=started,proto3" json:"started,omitempty"` 494 // duration of the execution in nanoseconds 495 Duration uint64 `protobuf:"varint,6,opt,name=duration,proto3" json:"duration,omitempty"` 496 // associated metadata 497 Metadata map[string]string `protobuf:"bytes,7,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 498 Type SpanType `protobuf:"varint,8,opt,name=type,proto3,enum=SpanType" json:"type,omitempty"` 499 XXX_NoUnkeyedLiteral struct{} `json:"-"` 500 XXX_unrecognized []byte `json:"-"` 501 XXX_sizecache int32 `json:"-"` 502 } 503 504 func (m *Span) Reset() { *m = Span{} } 505 func (m *Span) String() string { return proto.CompactTextString(m) } 506 func (*Span) ProtoMessage() {} 507 func (*Span) Descriptor() ([]byte, []int) { 508 return fileDescriptor_df91f41a5db378e6, []int{8} 509 } 510 511 func (m *Span) XXX_Unmarshal(b []byte) error { 512 return xxx_messageInfo_Span.Unmarshal(m, b) 513 } 514 func (m *Span) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 515 return xxx_messageInfo_Span.Marshal(b, m, deterministic) 516 } 517 func (m *Span) XXX_Merge(src proto.Message) { 518 xxx_messageInfo_Span.Merge(m, src) 519 } 520 func (m *Span) XXX_Size() int { 521 return xxx_messageInfo_Span.Size(m) 522 } 523 func (m *Span) XXX_DiscardUnknown() { 524 xxx_messageInfo_Span.DiscardUnknown(m) 525 } 526 527 var xxx_messageInfo_Span proto.InternalMessageInfo 528 529 func (m *Span) GetTrace() string { 530 if m != nil { 531 return m.Trace 532 } 533 return "" 534 } 535 536 func (m *Span) GetId() string { 537 if m != nil { 538 return m.Id 539 } 540 return "" 541 } 542 543 func (m *Span) GetParent() string { 544 if m != nil { 545 return m.Parent 546 } 547 return "" 548 } 549 550 func (m *Span) GetName() string { 551 if m != nil { 552 return m.Name 553 } 554 return "" 555 } 556 557 func (m *Span) GetStarted() uint64 { 558 if m != nil { 559 return m.Started 560 } 561 return 0 562 } 563 564 func (m *Span) GetDuration() uint64 { 565 if m != nil { 566 return m.Duration 567 } 568 return 0 569 } 570 571 func (m *Span) GetMetadata() map[string]string { 572 if m != nil { 573 return m.Metadata 574 } 575 return nil 576 } 577 578 func (m *Span) GetType() SpanType { 579 if m != nil { 580 return m.Type 581 } 582 return SpanType_INBOUND 583 } 584 585 type CacheRequest struct { 586 XXX_NoUnkeyedLiteral struct{} `json:"-"` 587 XXX_unrecognized []byte `json:"-"` 588 XXX_sizecache int32 `json:"-"` 589 } 590 591 func (m *CacheRequest) Reset() { *m = CacheRequest{} } 592 func (m *CacheRequest) String() string { return proto.CompactTextString(m) } 593 func (*CacheRequest) ProtoMessage() {} 594 func (*CacheRequest) Descriptor() ([]byte, []int) { 595 return fileDescriptor_df91f41a5db378e6, []int{9} 596 } 597 598 func (m *CacheRequest) XXX_Unmarshal(b []byte) error { 599 return xxx_messageInfo_CacheRequest.Unmarshal(m, b) 600 } 601 func (m *CacheRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 602 return xxx_messageInfo_CacheRequest.Marshal(b, m, deterministic) 603 } 604 func (m *CacheRequest) XXX_Merge(src proto.Message) { 605 xxx_messageInfo_CacheRequest.Merge(m, src) 606 } 607 func (m *CacheRequest) XXX_Size() int { 608 return xxx_messageInfo_CacheRequest.Size(m) 609 } 610 func (m *CacheRequest) XXX_DiscardUnknown() { 611 xxx_messageInfo_CacheRequest.DiscardUnknown(m) 612 } 613 614 var xxx_messageInfo_CacheRequest proto.InternalMessageInfo 615 616 type CacheResponse struct { 617 Values map[string]string `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 618 XXX_NoUnkeyedLiteral struct{} `json:"-"` 619 XXX_unrecognized []byte `json:"-"` 620 XXX_sizecache int32 `json:"-"` 621 } 622 623 func (m *CacheResponse) Reset() { *m = CacheResponse{} } 624 func (m *CacheResponse) String() string { return proto.CompactTextString(m) } 625 func (*CacheResponse) ProtoMessage() {} 626 func (*CacheResponse) Descriptor() ([]byte, []int) { 627 return fileDescriptor_df91f41a5db378e6, []int{10} 628 } 629 630 func (m *CacheResponse) XXX_Unmarshal(b []byte) error { 631 return xxx_messageInfo_CacheResponse.Unmarshal(m, b) 632 } 633 func (m *CacheResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 634 return xxx_messageInfo_CacheResponse.Marshal(b, m, deterministic) 635 } 636 func (m *CacheResponse) XXX_Merge(src proto.Message) { 637 xxx_messageInfo_CacheResponse.Merge(m, src) 638 } 639 func (m *CacheResponse) XXX_Size() int { 640 return xxx_messageInfo_CacheResponse.Size(m) 641 } 642 func (m *CacheResponse) XXX_DiscardUnknown() { 643 xxx_messageInfo_CacheResponse.DiscardUnknown(m) 644 } 645 646 var xxx_messageInfo_CacheResponse proto.InternalMessageInfo 647 648 func (m *CacheResponse) GetValues() map[string]string { 649 if m != nil { 650 return m.Values 651 } 652 return nil 653 } 654 655 func init() { 656 proto.RegisterEnum("SpanType", SpanType_name, SpanType_value) 657 proto.RegisterType((*HealthRequest)(nil), "HealthRequest") 658 proto.RegisterType((*HealthResponse)(nil), "HealthResponse") 659 proto.RegisterType((*StatsRequest)(nil), "StatsRequest") 660 proto.RegisterType((*StatsResponse)(nil), "StatsResponse") 661 proto.RegisterType((*LogRequest)(nil), "LogRequest") 662 proto.RegisterType((*Record)(nil), "Record") 663 proto.RegisterMapType((map[string]string)(nil), "Record.MetadataEntry") 664 proto.RegisterType((*TraceRequest)(nil), "TraceRequest") 665 proto.RegisterType((*TraceResponse)(nil), "TraceResponse") 666 proto.RegisterType((*Span)(nil), "Span") 667 proto.RegisterMapType((map[string]string)(nil), "Span.MetadataEntry") 668 proto.RegisterType((*CacheRequest)(nil), "CacheRequest") 669 proto.RegisterType((*CacheResponse)(nil), "CacheResponse") 670 proto.RegisterMapType((map[string]string)(nil), "CacheResponse.ValuesEntry") 671 } 672 673 func init() { proto.RegisterFile("debug/service/proto/debug.proto", fileDescriptor_df91f41a5db378e6) } 674 675 var fileDescriptor_df91f41a5db378e6 = []byte{ 676 // 646 bytes of a gzipped FileDescriptorProto 677 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x54, 0xdb, 0x6e, 0xd3, 0x4a, 678 0x14, 0x8d, 0xed, 0x38, 0xb1, 0x77, 0x62, 0x9f, 0x6a, 0xce, 0x45, 0x96, 0x0f, 0xd0, 0xca, 0x12, 679 0x52, 0xb8, 0x68, 0x02, 0xe1, 0x85, 0xcb, 0x1b, 0x14, 0x09, 0xa4, 0xd2, 0x4a, 0xd3, 0x96, 0xf7, 680 0xa9, 0x3d, 0x4a, 0x03, 0xf5, 0x85, 0x99, 0x71, 0xa5, 0xbc, 0xf0, 0x23, 0xfc, 0x04, 0xff, 0x82, 681 0xf8, 0x1f, 0x34, 0x17, 0xb7, 0xb6, 0x10, 0xaa, 0x10, 0x6f, 0x5e, 0x6b, 0xaf, 0xd9, 0xd9, 0x7b, 682 0x69, 0x65, 0xc3, 0x6e, 0xc1, 0xce, 0xda, 0xf5, 0x52, 0x30, 0x7e, 0xb9, 0xc9, 0xd9, 0xb2, 0xe1, 683 0xb5, 0xac, 0x97, 0x9a, 0xc3, 0xfa, 0x3b, 0xbb, 0x07, 0xd1, 0x1b, 0x46, 0x2f, 0xe4, 0x39, 0x61, 684 0x9f, 0x5a, 0x26, 0x24, 0x4a, 0x60, 0x6a, 0xd5, 0x89, 0xb3, 0xe7, 0x2c, 0x42, 0xd2, 0xc1, 0x6c, 685 0x01, 0x71, 0x27, 0x15, 0x4d, 0x5d, 0x09, 0x86, 0xfe, 0x83, 0x89, 0x90, 0x54, 0xb6, 0xc2, 0x4a, 686 0x2d, 0xca, 0x16, 0x30, 0x3f, 0x96, 0x54, 0x8a, 0x9b, 0x7b, 0x7e, 0x77, 0x20, 0xb2, 0x52, 0xdb, 687 0xf3, 0x16, 0x84, 0x72, 0x53, 0x32, 0x21, 0x69, 0xd9, 0x68, 0xf5, 0x98, 0x5c, 0x13, 0xba, 0x93, 688 0xa4, 0x5c, 0xb2, 0x22, 0x71, 0x75, 0xad, 0x83, 0x6a, 0x96, 0xb6, 0x51, 0xc2, 0xc4, 0xd3, 0x05, 689 0x8b, 0x14, 0x5f, 0xb2, 0xb2, 0xe6, 0xdb, 0x64, 0x6c, 0x78, 0x83, 0x54, 0x27, 0x79, 0xce, 0x19, 690 0x2d, 0x44, 0xe2, 0x9b, 0x4e, 0x16, 0xa2, 0x18, 0xdc, 0x75, 0x9e, 0x4c, 0x34, 0xe9, 0xae, 0x73, 691 0x94, 0x42, 0xc0, 0xcd, 0x22, 0x22, 0x99, 0x6a, 0xf6, 0x0a, 0xab, 0xee, 0x8c, 0xf3, 0x9a, 0x8b, 692 0x24, 0x30, 0xdd, 0x0d, 0xca, 0x3e, 0x00, 0x1c, 0xd4, 0xeb, 0x1b, 0xf7, 0x37, 0x0e, 0x72, 0x46, 693 0x4b, 0xbd, 0x4e, 0x40, 0x2c, 0x42, 0xff, 0x80, 0x9f, 0xd7, 0x6d, 0x25, 0xf5, 0x32, 0x1e, 0x31, 694 0x40, 0xb1, 0x62, 0x53, 0xe5, 0x4c, 0xaf, 0xe2, 0x11, 0x03, 0xb2, 0xaf, 0x0e, 0x4c, 0x08, 0xcb, 695 0x6b, 0x5e, 0xfc, 0x6c, 0x9e, 0xd7, 0x37, 0xef, 0x31, 0x04, 0x25, 0x93, 0xb4, 0xa0, 0x92, 0x26, 696 0xee, 0x9e, 0xb7, 0x98, 0xad, 0xfe, 0xc5, 0xe6, 0x21, 0x7e, 0x67, 0xf9, 0xd7, 0x95, 0xe4, 0x5b, 697 0x72, 0x25, 0x53, 0x93, 0x97, 0x4c, 0x08, 0xba, 0x36, 0xb6, 0x86, 0xa4, 0x83, 0xe9, 0x0b, 0x88, 698 0x06, 0x8f, 0xd0, 0x0e, 0x78, 0x1f, 0xd9, 0xd6, 0x2e, 0xa8, 0x3e, 0xd5, 0xb8, 0x97, 0xf4, 0xa2, 699 0x65, 0x7a, 0xb7, 0x90, 0x18, 0xf0, 0xdc, 0x7d, 0xea, 0x64, 0x77, 0x60, 0x7e, 0xc2, 0x69, 0xce, 700 0x3a, 0x83, 0x62, 0x70, 0x37, 0x85, 0x7d, 0xea, 0x6e, 0x8a, 0xec, 0x21, 0x44, 0xb6, 0x6e, 0x53, 701 0xf1, 0x3f, 0xf8, 0xa2, 0xa1, 0x95, 0x0a, 0x9a, 0x9a, 0xdb, 0xc7, 0xc7, 0x0d, 0xad, 0x88, 0xe1, 702 0xb2, 0x2f, 0x2e, 0x8c, 0x15, 0x56, 0x3f, 0x28, 0xd5, 0x33, 0xdb, 0xc9, 0x00, 0xdb, 0xdc, 0xed, 703 0x9a, 0x2b, 0xcf, 0x1b, 0xca, 0x99, 0x35, 0x37, 0x24, 0x16, 0x21, 0x04, 0xe3, 0x8a, 0x96, 0xc6, 704 0xdc, 0x90, 0xe8, 0xef, 0x7e, 0xde, 0xfc, 0x61, 0xde, 0x52, 0x08, 0x8a, 0x96, 0x53, 0xb9, 0xa9, 705 0x2b, 0x9b, 0x95, 0x2b, 0x8c, 0x96, 0x3d, 0xa3, 0xa7, 0x7a, 0xe0, 0xbf, 0xf5, 0xc0, 0xbf, 0xb4, 706 0xf9, 0x36, 0x8c, 0xe5, 0xb6, 0x61, 0x3a, 0x44, 0xf1, 0x2a, 0xd4, 0xe2, 0x93, 0x6d, 0xc3, 0x88, 707 0xa6, 0xff, 0xcc, 0xeb, 0x18, 0xe6, 0xaf, 0x68, 0x7e, 0xde, 0x79, 0x9d, 0x7d, 0x86, 0xc8, 0x62, 708 0xeb, 0xed, 0x0a, 0x26, 0x5a, 0xdd, 0x99, 0x9b, 0xe2, 0x41, 0x1d, 0xbf, 0xd7, 0x45, 0x33, 0xb2, 709 0x55, 0xa6, 0xcf, 0x60, 0xd6, 0xa3, 0x7f, 0x67, 0x9e, 0xfb, 0x77, 0x21, 0xe8, 0xd6, 0x43, 0x33, 710 0x98, 0xbe, 0x3d, 0x7c, 0x79, 0x74, 0x7a, 0xb8, 0xbf, 0x33, 0x42, 0x73, 0x08, 0x8e, 0x4e, 0x4f, 711 0x0c, 0x72, 0x56, 0xdf, 0x1c, 0xf0, 0xf7, 0xd5, 0xa1, 0x42, 0xbb, 0xe0, 0x1d, 0xd4, 0x6b, 0x34, 712 0xc3, 0xd7, 0xff, 0xa8, 0x74, 0x6a, 0x83, 0x9b, 0x8d, 0x1e, 0x39, 0xe8, 0x01, 0x4c, 0xcc, 0x61, 713 0x42, 0x31, 0x1e, 0x1c, 0xb3, 0xf4, 0x2f, 0x3c, 0xbc, 0x58, 0xd9, 0x08, 0x2d, 0xc0, 0xd7, 0x07, 714 0x07, 0x45, 0xb8, 0x7f, 0xa3, 0xd2, 0x18, 0x0f, 0xee, 0x90, 0x51, 0xea, 0x10, 0xa2, 0x08, 0xf7, 715 0xc3, 0x9a, 0xc6, 0x78, 0x90, 0x4d, 0xa3, 0xd4, 0x96, 0xa1, 0x08, 0xf7, 0xad, 0x4e, 0xe3, 0xa1, 716 0x93, 0xd9, 0xe8, 0x6c, 0xa2, 0xaf, 0xee, 0x93, 0x1f, 0x01, 0x00, 0x00, 0xff, 0xff, 0x22, 0x65, 717 0x99, 0x10, 0x98, 0x05, 0x00, 0x00, 718 } 719 720 // Reference imports to suppress errors if they are not otherwise used. 721 var _ context.Context 722 var _ grpc.ClientConn 723 724 // This is a compile-time assertion to ensure that this generated file 725 // is compatible with the grpc package it is being compiled against. 726 const _ = grpc.SupportPackageIsVersion4 727 728 // DebugClient is the client API for Debug service. 729 // 730 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 731 type DebugClient interface { 732 Log(ctx context.Context, in *LogRequest, opts ...grpc.CallOption) (Debug_LogClient, error) 733 Health(ctx context.Context, in *HealthRequest, opts ...grpc.CallOption) (*HealthResponse, error) 734 Stats(ctx context.Context, in *StatsRequest, opts ...grpc.CallOption) (*StatsResponse, error) 735 Trace(ctx context.Context, in *TraceRequest, opts ...grpc.CallOption) (*TraceResponse, error) 736 Cache(ctx context.Context, in *CacheRequest, opts ...grpc.CallOption) (*CacheResponse, error) 737 } 738 739 type debugClient struct { 740 cc *grpc.ClientConn 741 } 742 743 func NewDebugClient(cc *grpc.ClientConn) DebugClient { 744 return &debugClient{cc} 745 } 746 747 func (c *debugClient) Log(ctx context.Context, in *LogRequest, opts ...grpc.CallOption) (Debug_LogClient, error) { 748 stream, err := c.cc.NewStream(ctx, &_Debug_serviceDesc.Streams[0], "/Debug/Log", opts...) 749 if err != nil { 750 return nil, err 751 } 752 x := &debugLogClient{stream} 753 if err := x.ClientStream.SendMsg(in); err != nil { 754 return nil, err 755 } 756 if err := x.ClientStream.CloseSend(); err != nil { 757 return nil, err 758 } 759 return x, nil 760 } 761 762 type Debug_LogClient interface { 763 Recv() (*Record, error) 764 grpc.ClientStream 765 } 766 767 type debugLogClient struct { 768 grpc.ClientStream 769 } 770 771 func (x *debugLogClient) Recv() (*Record, error) { 772 m := new(Record) 773 if err := x.ClientStream.RecvMsg(m); err != nil { 774 return nil, err 775 } 776 return m, nil 777 } 778 779 func (c *debugClient) Health(ctx context.Context, in *HealthRequest, opts ...grpc.CallOption) (*HealthResponse, error) { 780 out := new(HealthResponse) 781 err := c.cc.Invoke(ctx, "/Debug/Health", in, out, opts...) 782 if err != nil { 783 return nil, err 784 } 785 return out, nil 786 } 787 788 func (c *debugClient) Stats(ctx context.Context, in *StatsRequest, opts ...grpc.CallOption) (*StatsResponse, error) { 789 out := new(StatsResponse) 790 err := c.cc.Invoke(ctx, "/Debug/Stats", in, out, opts...) 791 if err != nil { 792 return nil, err 793 } 794 return out, nil 795 } 796 797 func (c *debugClient) Trace(ctx context.Context, in *TraceRequest, opts ...grpc.CallOption) (*TraceResponse, error) { 798 out := new(TraceResponse) 799 err := c.cc.Invoke(ctx, "/Debug/Trace", in, out, opts...) 800 if err != nil { 801 return nil, err 802 } 803 return out, nil 804 } 805 806 func (c *debugClient) Cache(ctx context.Context, in *CacheRequest, opts ...grpc.CallOption) (*CacheResponse, error) { 807 out := new(CacheResponse) 808 err := c.cc.Invoke(ctx, "/Debug/Cache", in, out, opts...) 809 if err != nil { 810 return nil, err 811 } 812 return out, nil 813 } 814 815 // DebugServer is the server API for Debug service. 816 type DebugServer interface { 817 Log(*LogRequest, Debug_LogServer) error 818 Health(context.Context, *HealthRequest) (*HealthResponse, error) 819 Stats(context.Context, *StatsRequest) (*StatsResponse, error) 820 Trace(context.Context, *TraceRequest) (*TraceResponse, error) 821 Cache(context.Context, *CacheRequest) (*CacheResponse, error) 822 } 823 824 // UnimplementedDebugServer can be embedded to have forward compatible implementations. 825 type UnimplementedDebugServer struct { 826 } 827 828 func (*UnimplementedDebugServer) Log(req *LogRequest, srv Debug_LogServer) error { 829 return status.Errorf(codes.Unimplemented, "method Log not implemented") 830 } 831 func (*UnimplementedDebugServer) Health(ctx context.Context, req *HealthRequest) (*HealthResponse, error) { 832 return nil, status.Errorf(codes.Unimplemented, "method Health not implemented") 833 } 834 func (*UnimplementedDebugServer) Stats(ctx context.Context, req *StatsRequest) (*StatsResponse, error) { 835 return nil, status.Errorf(codes.Unimplemented, "method Stats not implemented") 836 } 837 func (*UnimplementedDebugServer) Trace(ctx context.Context, req *TraceRequest) (*TraceResponse, error) { 838 return nil, status.Errorf(codes.Unimplemented, "method Trace not implemented") 839 } 840 func (*UnimplementedDebugServer) Cache(ctx context.Context, req *CacheRequest) (*CacheResponse, error) { 841 return nil, status.Errorf(codes.Unimplemented, "method Cache not implemented") 842 } 843 844 func RegisterDebugServer(s *grpc.Server, srv DebugServer) { 845 s.RegisterService(&_Debug_serviceDesc, srv) 846 } 847 848 func _Debug_Log_Handler(srv interface{}, stream grpc.ServerStream) error { 849 m := new(LogRequest) 850 if err := stream.RecvMsg(m); err != nil { 851 return err 852 } 853 return srv.(DebugServer).Log(m, &debugLogServer{stream}) 854 } 855 856 type Debug_LogServer interface { 857 Send(*Record) error 858 grpc.ServerStream 859 } 860 861 type debugLogServer struct { 862 grpc.ServerStream 863 } 864 865 func (x *debugLogServer) Send(m *Record) error { 866 return x.ServerStream.SendMsg(m) 867 } 868 869 func _Debug_Health_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 870 in := new(HealthRequest) 871 if err := dec(in); err != nil { 872 return nil, err 873 } 874 if interceptor == nil { 875 return srv.(DebugServer).Health(ctx, in) 876 } 877 info := &grpc.UnaryServerInfo{ 878 Server: srv, 879 FullMethod: "/Debug/Health", 880 } 881 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 882 return srv.(DebugServer).Health(ctx, req.(*HealthRequest)) 883 } 884 return interceptor(ctx, in, info, handler) 885 } 886 887 func _Debug_Stats_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 888 in := new(StatsRequest) 889 if err := dec(in); err != nil { 890 return nil, err 891 } 892 if interceptor == nil { 893 return srv.(DebugServer).Stats(ctx, in) 894 } 895 info := &grpc.UnaryServerInfo{ 896 Server: srv, 897 FullMethod: "/Debug/Stats", 898 } 899 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 900 return srv.(DebugServer).Stats(ctx, req.(*StatsRequest)) 901 } 902 return interceptor(ctx, in, info, handler) 903 } 904 905 func _Debug_Trace_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 906 in := new(TraceRequest) 907 if err := dec(in); err != nil { 908 return nil, err 909 } 910 if interceptor == nil { 911 return srv.(DebugServer).Trace(ctx, in) 912 } 913 info := &grpc.UnaryServerInfo{ 914 Server: srv, 915 FullMethod: "/Debug/Trace", 916 } 917 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 918 return srv.(DebugServer).Trace(ctx, req.(*TraceRequest)) 919 } 920 return interceptor(ctx, in, info, handler) 921 } 922 923 func _Debug_Cache_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 924 in := new(CacheRequest) 925 if err := dec(in); err != nil { 926 return nil, err 927 } 928 if interceptor == nil { 929 return srv.(DebugServer).Cache(ctx, in) 930 } 931 info := &grpc.UnaryServerInfo{ 932 Server: srv, 933 FullMethod: "/Debug/Cache", 934 } 935 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 936 return srv.(DebugServer).Cache(ctx, req.(*CacheRequest)) 937 } 938 return interceptor(ctx, in, info, handler) 939 } 940 941 var _Debug_serviceDesc = grpc.ServiceDesc{ 942 ServiceName: "Debug", 943 HandlerType: (*DebugServer)(nil), 944 Methods: []grpc.MethodDesc{ 945 { 946 MethodName: "Health", 947 Handler: _Debug_Health_Handler, 948 }, 949 { 950 MethodName: "Stats", 951 Handler: _Debug_Stats_Handler, 952 }, 953 { 954 MethodName: "Trace", 955 Handler: _Debug_Trace_Handler, 956 }, 957 { 958 MethodName: "Cache", 959 Handler: _Debug_Cache_Handler, 960 }, 961 }, 962 Streams: []grpc.StreamDesc{ 963 { 964 StreamName: "Log", 965 Handler: _Debug_Log_Handler, 966 ServerStreams: true, 967 }, 968 }, 969 Metadata: "debug/service/proto/debug.proto", 970 }