gitee.com/liuxuezhan/go-micro-v1.18.0@v1.0.0/registry/service/proto/registry.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // source: micro/go-micro/registry/service/proto/registry.proto 3 4 package go_micro_registry 5 6 import ( 7 fmt "fmt" 8 proto "github.com/golang/protobuf/proto" 9 math "math" 10 ) 11 12 // Reference imports to suppress errors if they are not otherwise used. 13 var _ = proto.Marshal 14 var _ = fmt.Errorf 15 var _ = math.Inf 16 17 // This is a compile-time assertion to ensure that this generated file 18 // is compatible with the proto package it is being compiled against. 19 // A compilation error at this line likely means your copy of the 20 // proto package needs to be updated. 21 const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 22 23 // EventType defines the type of event 24 type EventType int32 25 26 const ( 27 EventType_Create EventType = 0 28 EventType_Delete EventType = 1 29 EventType_Update EventType = 2 30 ) 31 32 var EventType_name = map[int32]string{ 33 0: "Create", 34 1: "Delete", 35 2: "Update", 36 } 37 38 var EventType_value = map[string]int32{ 39 "Create": 0, 40 "Delete": 1, 41 "Update": 2, 42 } 43 44 func (x EventType) String() string { 45 return proto.EnumName(EventType_name, int32(x)) 46 } 47 48 func (EventType) EnumDescriptor() ([]byte, []int) { 49 return fileDescriptor_2f73432195c6499a, []int{0} 50 } 51 52 // Service represents a go-micro service 53 type Service struct { 54 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 55 Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` 56 Metadata map[string]string `protobuf:"bytes,3,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 57 Endpoints []*Endpoint `protobuf:"bytes,4,rep,name=endpoints,proto3" json:"endpoints,omitempty"` 58 Nodes []*Node `protobuf:"bytes,5,rep,name=nodes,proto3" json:"nodes,omitempty"` 59 Options *Options `protobuf:"bytes,6,opt,name=options,proto3" json:"options,omitempty"` 60 XXX_NoUnkeyedLiteral struct{} `json:"-"` 61 XXX_unrecognized []byte `json:"-"` 62 XXX_sizecache int32 `json:"-"` 63 } 64 65 func (m *Service) Reset() { *m = Service{} } 66 func (m *Service) String() string { return proto.CompactTextString(m) } 67 func (*Service) ProtoMessage() {} 68 func (*Service) Descriptor() ([]byte, []int) { 69 return fileDescriptor_2f73432195c6499a, []int{0} 70 } 71 72 func (m *Service) XXX_Unmarshal(b []byte) error { 73 return xxx_messageInfo_Service.Unmarshal(m, b) 74 } 75 func (m *Service) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 76 return xxx_messageInfo_Service.Marshal(b, m, deterministic) 77 } 78 func (m *Service) XXX_Merge(src proto.Message) { 79 xxx_messageInfo_Service.Merge(m, src) 80 } 81 func (m *Service) XXX_Size() int { 82 return xxx_messageInfo_Service.Size(m) 83 } 84 func (m *Service) XXX_DiscardUnknown() { 85 xxx_messageInfo_Service.DiscardUnknown(m) 86 } 87 88 var xxx_messageInfo_Service proto.InternalMessageInfo 89 90 func (m *Service) GetName() string { 91 if m != nil { 92 return m.Name 93 } 94 return "" 95 } 96 97 func (m *Service) GetVersion() string { 98 if m != nil { 99 return m.Version 100 } 101 return "" 102 } 103 104 func (m *Service) GetMetadata() map[string]string { 105 if m != nil { 106 return m.Metadata 107 } 108 return nil 109 } 110 111 func (m *Service) GetEndpoints() []*Endpoint { 112 if m != nil { 113 return m.Endpoints 114 } 115 return nil 116 } 117 118 func (m *Service) GetNodes() []*Node { 119 if m != nil { 120 return m.Nodes 121 } 122 return nil 123 } 124 125 func (m *Service) GetOptions() *Options { 126 if m != nil { 127 return m.Options 128 } 129 return nil 130 } 131 132 // Node represents the node the service is on 133 type Node struct { 134 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` 135 Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` 136 Port int64 `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty"` 137 Metadata map[string]string `protobuf:"bytes,4,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 138 XXX_NoUnkeyedLiteral struct{} `json:"-"` 139 XXX_unrecognized []byte `json:"-"` 140 XXX_sizecache int32 `json:"-"` 141 } 142 143 func (m *Node) Reset() { *m = Node{} } 144 func (m *Node) String() string { return proto.CompactTextString(m) } 145 func (*Node) ProtoMessage() {} 146 func (*Node) Descriptor() ([]byte, []int) { 147 return fileDescriptor_2f73432195c6499a, []int{1} 148 } 149 150 func (m *Node) XXX_Unmarshal(b []byte) error { 151 return xxx_messageInfo_Node.Unmarshal(m, b) 152 } 153 func (m *Node) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 154 return xxx_messageInfo_Node.Marshal(b, m, deterministic) 155 } 156 func (m *Node) XXX_Merge(src proto.Message) { 157 xxx_messageInfo_Node.Merge(m, src) 158 } 159 func (m *Node) XXX_Size() int { 160 return xxx_messageInfo_Node.Size(m) 161 } 162 func (m *Node) XXX_DiscardUnknown() { 163 xxx_messageInfo_Node.DiscardUnknown(m) 164 } 165 166 var xxx_messageInfo_Node proto.InternalMessageInfo 167 168 func (m *Node) GetId() string { 169 if m != nil { 170 return m.Id 171 } 172 return "" 173 } 174 175 func (m *Node) GetAddress() string { 176 if m != nil { 177 return m.Address 178 } 179 return "" 180 } 181 182 func (m *Node) GetPort() int64 { 183 if m != nil { 184 return m.Port 185 } 186 return 0 187 } 188 189 func (m *Node) GetMetadata() map[string]string { 190 if m != nil { 191 return m.Metadata 192 } 193 return nil 194 } 195 196 // Endpoint is a endpoint provided by a service 197 type Endpoint struct { 198 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 199 Request *Value `protobuf:"bytes,2,opt,name=request,proto3" json:"request,omitempty"` 200 Response *Value `protobuf:"bytes,3,opt,name=response,proto3" json:"response,omitempty"` 201 Metadata map[string]string `protobuf:"bytes,4,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 202 XXX_NoUnkeyedLiteral struct{} `json:"-"` 203 XXX_unrecognized []byte `json:"-"` 204 XXX_sizecache int32 `json:"-"` 205 } 206 207 func (m *Endpoint) Reset() { *m = Endpoint{} } 208 func (m *Endpoint) String() string { return proto.CompactTextString(m) } 209 func (*Endpoint) ProtoMessage() {} 210 func (*Endpoint) Descriptor() ([]byte, []int) { 211 return fileDescriptor_2f73432195c6499a, []int{2} 212 } 213 214 func (m *Endpoint) XXX_Unmarshal(b []byte) error { 215 return xxx_messageInfo_Endpoint.Unmarshal(m, b) 216 } 217 func (m *Endpoint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 218 return xxx_messageInfo_Endpoint.Marshal(b, m, deterministic) 219 } 220 func (m *Endpoint) XXX_Merge(src proto.Message) { 221 xxx_messageInfo_Endpoint.Merge(m, src) 222 } 223 func (m *Endpoint) XXX_Size() int { 224 return xxx_messageInfo_Endpoint.Size(m) 225 } 226 func (m *Endpoint) XXX_DiscardUnknown() { 227 xxx_messageInfo_Endpoint.DiscardUnknown(m) 228 } 229 230 var xxx_messageInfo_Endpoint proto.InternalMessageInfo 231 232 func (m *Endpoint) GetName() string { 233 if m != nil { 234 return m.Name 235 } 236 return "" 237 } 238 239 func (m *Endpoint) GetRequest() *Value { 240 if m != nil { 241 return m.Request 242 } 243 return nil 244 } 245 246 func (m *Endpoint) GetResponse() *Value { 247 if m != nil { 248 return m.Response 249 } 250 return nil 251 } 252 253 func (m *Endpoint) GetMetadata() map[string]string { 254 if m != nil { 255 return m.Metadata 256 } 257 return nil 258 } 259 260 // Value is an opaque value for a request or response 261 type Value struct { 262 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 263 Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` 264 Values []*Value `protobuf:"bytes,3,rep,name=values,proto3" json:"values,omitempty"` 265 XXX_NoUnkeyedLiteral struct{} `json:"-"` 266 XXX_unrecognized []byte `json:"-"` 267 XXX_sizecache int32 `json:"-"` 268 } 269 270 func (m *Value) Reset() { *m = Value{} } 271 func (m *Value) String() string { return proto.CompactTextString(m) } 272 func (*Value) ProtoMessage() {} 273 func (*Value) Descriptor() ([]byte, []int) { 274 return fileDescriptor_2f73432195c6499a, []int{3} 275 } 276 277 func (m *Value) XXX_Unmarshal(b []byte) error { 278 return xxx_messageInfo_Value.Unmarshal(m, b) 279 } 280 func (m *Value) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 281 return xxx_messageInfo_Value.Marshal(b, m, deterministic) 282 } 283 func (m *Value) XXX_Merge(src proto.Message) { 284 xxx_messageInfo_Value.Merge(m, src) 285 } 286 func (m *Value) XXX_Size() int { 287 return xxx_messageInfo_Value.Size(m) 288 } 289 func (m *Value) XXX_DiscardUnknown() { 290 xxx_messageInfo_Value.DiscardUnknown(m) 291 } 292 293 var xxx_messageInfo_Value proto.InternalMessageInfo 294 295 func (m *Value) GetName() string { 296 if m != nil { 297 return m.Name 298 } 299 return "" 300 } 301 302 func (m *Value) GetType() string { 303 if m != nil { 304 return m.Type 305 } 306 return "" 307 } 308 309 func (m *Value) GetValues() []*Value { 310 if m != nil { 311 return m.Values 312 } 313 return nil 314 } 315 316 // Options are registry options 317 type Options struct { 318 Ttl int64 `protobuf:"varint,1,opt,name=ttl,proto3" json:"ttl,omitempty"` 319 XXX_NoUnkeyedLiteral struct{} `json:"-"` 320 XXX_unrecognized []byte `json:"-"` 321 XXX_sizecache int32 `json:"-"` 322 } 323 324 func (m *Options) Reset() { *m = Options{} } 325 func (m *Options) String() string { return proto.CompactTextString(m) } 326 func (*Options) ProtoMessage() {} 327 func (*Options) Descriptor() ([]byte, []int) { 328 return fileDescriptor_2f73432195c6499a, []int{4} 329 } 330 331 func (m *Options) XXX_Unmarshal(b []byte) error { 332 return xxx_messageInfo_Options.Unmarshal(m, b) 333 } 334 func (m *Options) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 335 return xxx_messageInfo_Options.Marshal(b, m, deterministic) 336 } 337 func (m *Options) XXX_Merge(src proto.Message) { 338 xxx_messageInfo_Options.Merge(m, src) 339 } 340 func (m *Options) XXX_Size() int { 341 return xxx_messageInfo_Options.Size(m) 342 } 343 func (m *Options) XXX_DiscardUnknown() { 344 xxx_messageInfo_Options.DiscardUnknown(m) 345 } 346 347 var xxx_messageInfo_Options proto.InternalMessageInfo 348 349 func (m *Options) GetTtl() int64 { 350 if m != nil { 351 return m.Ttl 352 } 353 return 0 354 } 355 356 // Result is returns by the watcher 357 type Result struct { 358 Action string `protobuf:"bytes,1,opt,name=action,proto3" json:"action,omitempty"` 359 Service *Service `protobuf:"bytes,2,opt,name=service,proto3" json:"service,omitempty"` 360 Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` 361 XXX_NoUnkeyedLiteral struct{} `json:"-"` 362 XXX_unrecognized []byte `json:"-"` 363 XXX_sizecache int32 `json:"-"` 364 } 365 366 func (m *Result) Reset() { *m = Result{} } 367 func (m *Result) String() string { return proto.CompactTextString(m) } 368 func (*Result) ProtoMessage() {} 369 func (*Result) Descriptor() ([]byte, []int) { 370 return fileDescriptor_2f73432195c6499a, []int{5} 371 } 372 373 func (m *Result) XXX_Unmarshal(b []byte) error { 374 return xxx_messageInfo_Result.Unmarshal(m, b) 375 } 376 func (m *Result) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 377 return xxx_messageInfo_Result.Marshal(b, m, deterministic) 378 } 379 func (m *Result) XXX_Merge(src proto.Message) { 380 xxx_messageInfo_Result.Merge(m, src) 381 } 382 func (m *Result) XXX_Size() int { 383 return xxx_messageInfo_Result.Size(m) 384 } 385 func (m *Result) XXX_DiscardUnknown() { 386 xxx_messageInfo_Result.DiscardUnknown(m) 387 } 388 389 var xxx_messageInfo_Result proto.InternalMessageInfo 390 391 func (m *Result) GetAction() string { 392 if m != nil { 393 return m.Action 394 } 395 return "" 396 } 397 398 func (m *Result) GetService() *Service { 399 if m != nil { 400 return m.Service 401 } 402 return nil 403 } 404 405 func (m *Result) GetTimestamp() int64 { 406 if m != nil { 407 return m.Timestamp 408 } 409 return 0 410 } 411 412 type EmptyResponse struct { 413 XXX_NoUnkeyedLiteral struct{} `json:"-"` 414 XXX_unrecognized []byte `json:"-"` 415 XXX_sizecache int32 `json:"-"` 416 } 417 418 func (m *EmptyResponse) Reset() { *m = EmptyResponse{} } 419 func (m *EmptyResponse) String() string { return proto.CompactTextString(m) } 420 func (*EmptyResponse) ProtoMessage() {} 421 func (*EmptyResponse) Descriptor() ([]byte, []int) { 422 return fileDescriptor_2f73432195c6499a, []int{6} 423 } 424 425 func (m *EmptyResponse) XXX_Unmarshal(b []byte) error { 426 return xxx_messageInfo_EmptyResponse.Unmarshal(m, b) 427 } 428 func (m *EmptyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 429 return xxx_messageInfo_EmptyResponse.Marshal(b, m, deterministic) 430 } 431 func (m *EmptyResponse) XXX_Merge(src proto.Message) { 432 xxx_messageInfo_EmptyResponse.Merge(m, src) 433 } 434 func (m *EmptyResponse) XXX_Size() int { 435 return xxx_messageInfo_EmptyResponse.Size(m) 436 } 437 func (m *EmptyResponse) XXX_DiscardUnknown() { 438 xxx_messageInfo_EmptyResponse.DiscardUnknown(m) 439 } 440 441 var xxx_messageInfo_EmptyResponse proto.InternalMessageInfo 442 443 type GetRequest struct { 444 Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"` 445 XXX_NoUnkeyedLiteral struct{} `json:"-"` 446 XXX_unrecognized []byte `json:"-"` 447 XXX_sizecache int32 `json:"-"` 448 } 449 450 func (m *GetRequest) Reset() { *m = GetRequest{} } 451 func (m *GetRequest) String() string { return proto.CompactTextString(m) } 452 func (*GetRequest) ProtoMessage() {} 453 func (*GetRequest) Descriptor() ([]byte, []int) { 454 return fileDescriptor_2f73432195c6499a, []int{7} 455 } 456 457 func (m *GetRequest) XXX_Unmarshal(b []byte) error { 458 return xxx_messageInfo_GetRequest.Unmarshal(m, b) 459 } 460 func (m *GetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 461 return xxx_messageInfo_GetRequest.Marshal(b, m, deterministic) 462 } 463 func (m *GetRequest) XXX_Merge(src proto.Message) { 464 xxx_messageInfo_GetRequest.Merge(m, src) 465 } 466 func (m *GetRequest) XXX_Size() int { 467 return xxx_messageInfo_GetRequest.Size(m) 468 } 469 func (m *GetRequest) XXX_DiscardUnknown() { 470 xxx_messageInfo_GetRequest.DiscardUnknown(m) 471 } 472 473 var xxx_messageInfo_GetRequest proto.InternalMessageInfo 474 475 func (m *GetRequest) GetService() string { 476 if m != nil { 477 return m.Service 478 } 479 return "" 480 } 481 482 type GetResponse struct { 483 Services []*Service `protobuf:"bytes,1,rep,name=services,proto3" json:"services,omitempty"` 484 XXX_NoUnkeyedLiteral struct{} `json:"-"` 485 XXX_unrecognized []byte `json:"-"` 486 XXX_sizecache int32 `json:"-"` 487 } 488 489 func (m *GetResponse) Reset() { *m = GetResponse{} } 490 func (m *GetResponse) String() string { return proto.CompactTextString(m) } 491 func (*GetResponse) ProtoMessage() {} 492 func (*GetResponse) Descriptor() ([]byte, []int) { 493 return fileDescriptor_2f73432195c6499a, []int{8} 494 } 495 496 func (m *GetResponse) XXX_Unmarshal(b []byte) error { 497 return xxx_messageInfo_GetResponse.Unmarshal(m, b) 498 } 499 func (m *GetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 500 return xxx_messageInfo_GetResponse.Marshal(b, m, deterministic) 501 } 502 func (m *GetResponse) XXX_Merge(src proto.Message) { 503 xxx_messageInfo_GetResponse.Merge(m, src) 504 } 505 func (m *GetResponse) XXX_Size() int { 506 return xxx_messageInfo_GetResponse.Size(m) 507 } 508 func (m *GetResponse) XXX_DiscardUnknown() { 509 xxx_messageInfo_GetResponse.DiscardUnknown(m) 510 } 511 512 var xxx_messageInfo_GetResponse proto.InternalMessageInfo 513 514 func (m *GetResponse) GetServices() []*Service { 515 if m != nil { 516 return m.Services 517 } 518 return nil 519 } 520 521 type ListRequest struct { 522 XXX_NoUnkeyedLiteral struct{} `json:"-"` 523 XXX_unrecognized []byte `json:"-"` 524 XXX_sizecache int32 `json:"-"` 525 } 526 527 func (m *ListRequest) Reset() { *m = ListRequest{} } 528 func (m *ListRequest) String() string { return proto.CompactTextString(m) } 529 func (*ListRequest) ProtoMessage() {} 530 func (*ListRequest) Descriptor() ([]byte, []int) { 531 return fileDescriptor_2f73432195c6499a, []int{9} 532 } 533 534 func (m *ListRequest) XXX_Unmarshal(b []byte) error { 535 return xxx_messageInfo_ListRequest.Unmarshal(m, b) 536 } 537 func (m *ListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 538 return xxx_messageInfo_ListRequest.Marshal(b, m, deterministic) 539 } 540 func (m *ListRequest) XXX_Merge(src proto.Message) { 541 xxx_messageInfo_ListRequest.Merge(m, src) 542 } 543 func (m *ListRequest) XXX_Size() int { 544 return xxx_messageInfo_ListRequest.Size(m) 545 } 546 func (m *ListRequest) XXX_DiscardUnknown() { 547 xxx_messageInfo_ListRequest.DiscardUnknown(m) 548 } 549 550 var xxx_messageInfo_ListRequest proto.InternalMessageInfo 551 552 type ListResponse struct { 553 Services []*Service `protobuf:"bytes,1,rep,name=services,proto3" json:"services,omitempty"` 554 XXX_NoUnkeyedLiteral struct{} `json:"-"` 555 XXX_unrecognized []byte `json:"-"` 556 XXX_sizecache int32 `json:"-"` 557 } 558 559 func (m *ListResponse) Reset() { *m = ListResponse{} } 560 func (m *ListResponse) String() string { return proto.CompactTextString(m) } 561 func (*ListResponse) ProtoMessage() {} 562 func (*ListResponse) Descriptor() ([]byte, []int) { 563 return fileDescriptor_2f73432195c6499a, []int{10} 564 } 565 566 func (m *ListResponse) XXX_Unmarshal(b []byte) error { 567 return xxx_messageInfo_ListResponse.Unmarshal(m, b) 568 } 569 func (m *ListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 570 return xxx_messageInfo_ListResponse.Marshal(b, m, deterministic) 571 } 572 func (m *ListResponse) XXX_Merge(src proto.Message) { 573 xxx_messageInfo_ListResponse.Merge(m, src) 574 } 575 func (m *ListResponse) XXX_Size() int { 576 return xxx_messageInfo_ListResponse.Size(m) 577 } 578 func (m *ListResponse) XXX_DiscardUnknown() { 579 xxx_messageInfo_ListResponse.DiscardUnknown(m) 580 } 581 582 var xxx_messageInfo_ListResponse proto.InternalMessageInfo 583 584 func (m *ListResponse) GetServices() []*Service { 585 if m != nil { 586 return m.Services 587 } 588 return nil 589 } 590 591 type WatchRequest struct { 592 // service is optional 593 Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"` 594 XXX_NoUnkeyedLiteral struct{} `json:"-"` 595 XXX_unrecognized []byte `json:"-"` 596 XXX_sizecache int32 `json:"-"` 597 } 598 599 func (m *WatchRequest) Reset() { *m = WatchRequest{} } 600 func (m *WatchRequest) String() string { return proto.CompactTextString(m) } 601 func (*WatchRequest) ProtoMessage() {} 602 func (*WatchRequest) Descriptor() ([]byte, []int) { 603 return fileDescriptor_2f73432195c6499a, []int{11} 604 } 605 606 func (m *WatchRequest) XXX_Unmarshal(b []byte) error { 607 return xxx_messageInfo_WatchRequest.Unmarshal(m, b) 608 } 609 func (m *WatchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 610 return xxx_messageInfo_WatchRequest.Marshal(b, m, deterministic) 611 } 612 func (m *WatchRequest) XXX_Merge(src proto.Message) { 613 xxx_messageInfo_WatchRequest.Merge(m, src) 614 } 615 func (m *WatchRequest) XXX_Size() int { 616 return xxx_messageInfo_WatchRequest.Size(m) 617 } 618 func (m *WatchRequest) XXX_DiscardUnknown() { 619 xxx_messageInfo_WatchRequest.DiscardUnknown(m) 620 } 621 622 var xxx_messageInfo_WatchRequest proto.InternalMessageInfo 623 624 func (m *WatchRequest) GetService() string { 625 if m != nil { 626 return m.Service 627 } 628 return "" 629 } 630 631 // Event is registry event 632 type Event struct { 633 // Event Id 634 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` 635 // type of event 636 Type EventType `protobuf:"varint,2,opt,name=type,proto3,enum=go.micro.registry.EventType" json:"type,omitempty"` 637 // unix timestamp of event 638 Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` 639 // service entry 640 Service *Service `protobuf:"bytes,4,opt,name=service,proto3" json:"service,omitempty"` 641 XXX_NoUnkeyedLiteral struct{} `json:"-"` 642 XXX_unrecognized []byte `json:"-"` 643 XXX_sizecache int32 `json:"-"` 644 } 645 646 func (m *Event) Reset() { *m = Event{} } 647 func (m *Event) String() string { return proto.CompactTextString(m) } 648 func (*Event) ProtoMessage() {} 649 func (*Event) Descriptor() ([]byte, []int) { 650 return fileDescriptor_2f73432195c6499a, []int{12} 651 } 652 653 func (m *Event) XXX_Unmarshal(b []byte) error { 654 return xxx_messageInfo_Event.Unmarshal(m, b) 655 } 656 func (m *Event) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 657 return xxx_messageInfo_Event.Marshal(b, m, deterministic) 658 } 659 func (m *Event) XXX_Merge(src proto.Message) { 660 xxx_messageInfo_Event.Merge(m, src) 661 } 662 func (m *Event) XXX_Size() int { 663 return xxx_messageInfo_Event.Size(m) 664 } 665 func (m *Event) XXX_DiscardUnknown() { 666 xxx_messageInfo_Event.DiscardUnknown(m) 667 } 668 669 var xxx_messageInfo_Event proto.InternalMessageInfo 670 671 func (m *Event) GetId() string { 672 if m != nil { 673 return m.Id 674 } 675 return "" 676 } 677 678 func (m *Event) GetType() EventType { 679 if m != nil { 680 return m.Type 681 } 682 return EventType_Create 683 } 684 685 func (m *Event) GetTimestamp() int64 { 686 if m != nil { 687 return m.Timestamp 688 } 689 return 0 690 } 691 692 func (m *Event) GetService() *Service { 693 if m != nil { 694 return m.Service 695 } 696 return nil 697 } 698 699 func init() { 700 proto.RegisterEnum("go.micro.registry.EventType", EventType_name, EventType_value) 701 proto.RegisterType((*Service)(nil), "go.micro.registry.Service") 702 proto.RegisterMapType((map[string]string)(nil), "go.micro.registry.Service.MetadataEntry") 703 proto.RegisterType((*Node)(nil), "go.micro.registry.Node") 704 proto.RegisterMapType((map[string]string)(nil), "go.micro.registry.Node.MetadataEntry") 705 proto.RegisterType((*Endpoint)(nil), "go.micro.registry.Endpoint") 706 proto.RegisterMapType((map[string]string)(nil), "go.micro.registry.Endpoint.MetadataEntry") 707 proto.RegisterType((*Value)(nil), "go.micro.registry.Value") 708 proto.RegisterType((*Options)(nil), "go.micro.registry.Options") 709 proto.RegisterType((*Result)(nil), "go.micro.registry.Result") 710 proto.RegisterType((*EmptyResponse)(nil), "go.micro.registry.EmptyResponse") 711 proto.RegisterType((*GetRequest)(nil), "go.micro.registry.GetRequest") 712 proto.RegisterType((*GetResponse)(nil), "go.micro.registry.GetResponse") 713 proto.RegisterType((*ListRequest)(nil), "go.micro.registry.ListRequest") 714 proto.RegisterType((*ListResponse)(nil), "go.micro.registry.ListResponse") 715 proto.RegisterType((*WatchRequest)(nil), "go.micro.registry.WatchRequest") 716 proto.RegisterType((*Event)(nil), "go.micro.registry.Event") 717 } 718 719 func init() { 720 proto.RegisterFile("micro/go-micro/registry/service/proto/registry.proto", fileDescriptor_2f73432195c6499a) 721 } 722 723 var fileDescriptor_2f73432195c6499a = []byte{ 724 // 681 bytes of a gzipped FileDescriptorProto 725 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x55, 0xdd, 0x6e, 0xd3, 0x4c, 726 0x10, 0x8d, 0xed, 0xfc, 0x4e, 0xda, 0x7e, 0xfd, 0x46, 0x08, 0x8c, 0x5b, 0x20, 0xb2, 0x04, 0x0a, 727 0x48, 0x4d, 0xaa, 0x50, 0x21, 0x7e, 0xae, 0x10, 0x0d, 0x95, 0x50, 0x0b, 0x62, 0xf9, 0xbb, 0x36, 728 0xf1, 0xa8, 0x58, 0x24, 0xb6, 0xd9, 0xdd, 0x46, 0xca, 0x3b, 0x20, 0xf1, 0x04, 0xbc, 0x0d, 0x4f, 729 0xc1, 0xd3, 0xa0, 0x5d, 0xaf, 0x93, 0x54, 0xdd, 0x04, 0xa4, 0xc2, 0xdd, 0xcc, 0xee, 0x39, 0xb3, 730 0xb3, 0x67, 0xce, 0xda, 0x70, 0x30, 0x49, 0x46, 0x3c, 0xeb, 0x9f, 0x66, 0x7b, 0x45, 0xc0, 0xe9, 731 0x34, 0x11, 0x92, 0xcf, 0xfa, 0x82, 0xf8, 0x34, 0x19, 0x51, 0x3f, 0xe7, 0x99, 0x5c, 0x2c, 0xf7, 732 0x74, 0x8a, 0xff, 0x9f, 0x66, 0x3d, 0x8d, 0xef, 0x95, 0x1b, 0xe1, 0x4f, 0x17, 0x1a, 0x6f, 0x0a, 733 0x0e, 0x22, 0x54, 0xd3, 0x68, 0x42, 0xbe, 0xd3, 0x71, 0xba, 0x2d, 0xa6, 0x63, 0xf4, 0xa1, 0x31, 734 0x25, 0x2e, 0x92, 0x2c, 0xf5, 0x5d, 0xbd, 0x5c, 0xa6, 0x78, 0x08, 0xcd, 0x09, 0xc9, 0x28, 0x8e, 735 0x64, 0xe4, 0x7b, 0x1d, 0xaf, 0xdb, 0x1e, 0x74, 0x7b, 0x17, 0xea, 0xf7, 0x4c, 0xed, 0xde, 0x89, 736 0x81, 0x0e, 0x53, 0xc9, 0x67, 0x6c, 0xce, 0xc4, 0x47, 0xd0, 0xa2, 0x34, 0xce, 0xb3, 0x24, 0x95, 737 0xc2, 0xaf, 0xea, 0x32, 0x3b, 0x96, 0x32, 0x43, 0x83, 0x61, 0x0b, 0x34, 0xee, 0x41, 0x2d, 0xcd, 738 0x62, 0x12, 0x7e, 0x4d, 0xd3, 0xae, 0x59, 0x68, 0x2f, 0xb3, 0x98, 0x58, 0x81, 0xc2, 0x03, 0x68, 739 0x64, 0xb9, 0x4c, 0xb2, 0x54, 0xf8, 0xf5, 0x8e, 0xd3, 0x6d, 0x0f, 0x02, 0x0b, 0xe1, 0x55, 0x81, 740 0x60, 0x25, 0x34, 0x78, 0x02, 0x9b, 0xe7, 0x5a, 0xc7, 0x6d, 0xf0, 0x3e, 0xd3, 0xcc, 0x68, 0xa4, 741 0x42, 0xbc, 0x02, 0xb5, 0x69, 0x34, 0x3e, 0x23, 0x23, 0x50, 0x91, 0x3c, 0x76, 0x1f, 0x3a, 0xe1, 742 0x0f, 0x07, 0xaa, 0xaa, 0x05, 0xdc, 0x02, 0x37, 0x89, 0x0d, 0xc7, 0x4d, 0x62, 0xa5, 0x6a, 0x14, 743 0xc7, 0x9c, 0x84, 0x28, 0x55, 0x35, 0xa9, 0x9a, 0x41, 0x9e, 0x71, 0xe9, 0x7b, 0x1d, 0xa7, 0xeb, 744 0x31, 0x1d, 0xe3, 0xd3, 0x25, 0xa5, 0x0b, 0x89, 0x6e, 0xaf, 0xb8, 0xeb, 0x2a, 0x99, 0x2f, 0x77, 745 0x8d, 0xaf, 0x2e, 0x34, 0xcb, 0x01, 0x58, 0x4d, 0x32, 0x80, 0x06, 0xa7, 0x2f, 0x67, 0x24, 0xa4, 746 0x26, 0xb7, 0x07, 0xbe, 0xa5, 0xbf, 0xf7, 0xaa, 0x1e, 0x2b, 0x81, 0x78, 0x00, 0x4d, 0x4e, 0x22, 747 0xcf, 0x52, 0x41, 0xfa, 0xb2, 0xeb, 0x48, 0x73, 0x24, 0x0e, 0x2f, 0x48, 0x71, 0x77, 0x8d, 0x5b, 748 0xfe, 0x8d, 0x1c, 0x11, 0xd4, 0x74, 0x5b, 0x56, 0x29, 0x10, 0xaa, 0x72, 0x96, 0x97, 0x2c, 0x1d, 749 0xe3, 0x3e, 0xd4, 0x35, 0x5b, 0x98, 0x77, 0xb2, 0xfa, 0xa2, 0x06, 0x17, 0xee, 0x40, 0xc3, 0x38, 750 0x51, 0x75, 0x26, 0xe5, 0x58, 0x9f, 0xe1, 0x31, 0x15, 0x86, 0x12, 0xea, 0x8c, 0xc4, 0xd9, 0x58, 751 0xe2, 0x55, 0xa8, 0x47, 0x23, 0x05, 0x33, 0x2d, 0x98, 0x4c, 0x59, 0xdd, 0x7c, 0x07, 0xcc, 0x3c, 752 0x82, 0xd5, 0x2f, 0x93, 0x95, 0x50, 0xdc, 0x85, 0x96, 0x4c, 0x26, 0x24, 0x64, 0x34, 0xc9, 0x8d, 753 0xff, 0x16, 0x0b, 0xe1, 0x7f, 0xb0, 0x39, 0x9c, 0xe4, 0x72, 0xc6, 0xcc, 0x28, 0xc2, 0x3b, 0x00, 754 0x47, 0x24, 0x99, 0x19, 0xa7, 0xbf, 0x38, 0xb2, 0xe8, 0xa5, 0x4c, 0xc3, 0x21, 0xb4, 0x35, 0xce, 755 0x4c, 0xf0, 0x01, 0x34, 0xcd, 0x8e, 0xf0, 0x1d, 0x2d, 0xc7, 0xba, 0xe6, 0xe6, 0xd8, 0x70, 0x13, 756 0xda, 0xc7, 0x89, 0x28, 0xcf, 0x0b, 0x9f, 0xc3, 0x46, 0x91, 0x5e, 0xb2, 0x6c, 0x17, 0x36, 0x3e, 757 0x44, 0x72, 0xf4, 0xe9, 0xf7, 0xf7, 0xf8, 0xee, 0x40, 0x6d, 0x38, 0xa5, 0x54, 0x5e, 0x78, 0xcd, 758 0xfb, 0x4b, 0x33, 0xdf, 0x1a, 0xec, 0xda, 0x0c, 0xa9, 0x78, 0x6f, 0x67, 0x39, 0x19, 0x47, 0xac, 759 0x95, 0x7a, 0x79, 0x7c, 0xd5, 0x3f, 0x1e, 0xdf, 0xbd, 0x3e, 0xb4, 0xe6, 0xc7, 0x20, 0x40, 0xfd, 760 0x19, 0xa7, 0x48, 0xd2, 0x76, 0x45, 0xc5, 0x87, 0x34, 0x26, 0x49, 0xdb, 0x8e, 0x8a, 0xdf, 0xe5, 761 0xb1, 0x5a, 0x77, 0x07, 0xdf, 0x3c, 0x68, 0x32, 0x53, 0x0e, 0x4f, 0xf4, 0x34, 0xcb, 0x3f, 0xc1, 762 0x0d, 0xcb, 0x81, 0x8b, 0x61, 0x07, 0x37, 0x57, 0x6d, 0x1b, 0x6b, 0x54, 0xf0, 0x45, 0x59, 0x9a, 763 0x38, 0xae, 0xe9, 0x3e, 0xe8, 0xd8, 0xc4, 0x3a, 0x67, 0xb3, 0x0a, 0x1e, 0x03, 0x1c, 0x12, 0xff, 764 0x5b, 0xd5, 0x5e, 0x17, 0xc6, 0x31, 0x14, 0x81, 0xb6, 0xbb, 0x2c, 0x19, 0x2d, 0xb8, 0xb5, 0x72, 765 0x7f, 0x5e, 0xf2, 0x08, 0x6a, 0xda, 0x43, 0x68, 0xc3, 0x2e, 0xbb, 0x2b, 0xb8, 0x6e, 0x01, 0x14, 766 0x6f, 0x39, 0xac, 0xec, 0x3b, 0x1f, 0xeb, 0xfa, 0x37, 0x7d, 0xff, 0x57, 0x00, 0x00, 0x00, 0xff, 767 0xff, 0x69, 0x33, 0x08, 0xdb, 0xde, 0x07, 0x00, 0x00, 768 }