2021-01-19 22:08:06 +03:00
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
|
|
// versions:
|
|
|
|
// protoc-gen-go v1.25.0-devel
|
|
|
|
// protoc v3.6.1
|
2021-01-29 15:01:10 +03:00
|
|
|
// source: register.proto
|
2021-01-19 22:08:06 +03:00
|
|
|
|
|
|
|
package service
|
|
|
|
|
|
|
|
import (
|
|
|
|
proto "github.com/golang/protobuf/proto"
|
|
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
|
|
reflect "reflect"
|
|
|
|
sync "sync"
|
|
|
|
)
|
|
|
|
|
|
|
|
const (
|
|
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
|
|
)
|
|
|
|
|
|
|
|
// This is a compile-time assertion that a sufficiently up-to-date version
|
|
|
|
// of the legacy proto package is being used.
|
|
|
|
const _ = proto.ProtoPackageIsVersion4
|
|
|
|
|
|
|
|
// EventType defines the type of event
|
|
|
|
type EventType int32
|
|
|
|
|
|
|
|
const (
|
|
|
|
EventType_Create EventType = 0
|
|
|
|
EventType_Delete EventType = 1
|
|
|
|
EventType_Update EventType = 2
|
|
|
|
)
|
|
|
|
|
|
|
|
// Enum value maps for EventType.
|
|
|
|
var (
|
|
|
|
EventType_name = map[int32]string{
|
|
|
|
0: "Create",
|
|
|
|
1: "Delete",
|
|
|
|
2: "Update",
|
|
|
|
}
|
|
|
|
EventType_value = map[string]int32{
|
|
|
|
"Create": 0,
|
|
|
|
"Delete": 1,
|
|
|
|
"Update": 2,
|
|
|
|
}
|
|
|
|
)
|
|
|
|
|
|
|
|
func (x EventType) Enum() *EventType {
|
|
|
|
p := new(EventType)
|
|
|
|
*p = x
|
|
|
|
return p
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x EventType) String() string {
|
|
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (EventType) Descriptor() protoreflect.EnumDescriptor {
|
2021-01-29 15:01:10 +03:00
|
|
|
return file_register_proto_enumTypes[0].Descriptor()
|
2021-01-19 22:08:06 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
func (EventType) Type() protoreflect.EnumType {
|
2021-01-29 15:01:10 +03:00
|
|
|
return &file_register_proto_enumTypes[0]
|
2021-01-19 22:08:06 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x EventType) Number() protoreflect.EnumNumber {
|
|
|
|
return protoreflect.EnumNumber(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deprecated: Use EventType.Descriptor instead.
|
|
|
|
func (EventType) EnumDescriptor() ([]byte, []int) {
|
2021-01-29 15:01:10 +03:00
|
|
|
return file_register_proto_rawDescGZIP(), []int{0}
|
2021-01-19 22:08:06 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
// Service represents a go-micro service
|
|
|
|
type Service struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
|
|
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
|
|
|
|
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"`
|
|
|
|
Endpoints []*Endpoint `protobuf:"bytes,4,rep,name=endpoints,proto3" json:"endpoints,omitempty"`
|
|
|
|
Nodes []*Node `protobuf:"bytes,5,rep,name=nodes,proto3" json:"nodes,omitempty"`
|
|
|
|
Options *Options `protobuf:"bytes,6,opt,name=options,proto3" json:"options,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *Service) Reset() {
|
|
|
|
*x = Service{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2021-01-29 15:01:10 +03:00
|
|
|
mi := &file_register_proto_msgTypes[0]
|
2021-01-19 22:08:06 +03:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *Service) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*Service) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *Service) ProtoReflect() protoreflect.Message {
|
2021-01-29 15:01:10 +03:00
|
|
|
mi := &file_register_proto_msgTypes[0]
|
2021-01-19 22:08:06 +03:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deprecated: Use Service.ProtoReflect.Descriptor instead.
|
|
|
|
func (*Service) Descriptor() ([]byte, []int) {
|
2021-01-29 15:01:10 +03:00
|
|
|
return file_register_proto_rawDescGZIP(), []int{0}
|
2021-01-19 22:08:06 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x *Service) GetName() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Name
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *Service) GetVersion() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Version
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *Service) GetMetadata() map[string]string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Metadata
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *Service) GetEndpoints() []*Endpoint {
|
|
|
|
if x != nil {
|
|
|
|
return x.Endpoints
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *Service) GetNodes() []*Node {
|
|
|
|
if x != nil {
|
|
|
|
return x.Nodes
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *Service) GetOptions() *Options {
|
|
|
|
if x != nil {
|
|
|
|
return x.Options
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// Node represents the node the service is on
|
|
|
|
type Node struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
|
|
Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
|
|
|
|
Port int64 `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty"`
|
|
|
|
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"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *Node) Reset() {
|
|
|
|
*x = Node{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2021-01-29 15:01:10 +03:00
|
|
|
mi := &file_register_proto_msgTypes[1]
|
2021-01-19 22:08:06 +03:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *Node) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*Node) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *Node) ProtoReflect() protoreflect.Message {
|
2021-01-29 15:01:10 +03:00
|
|
|
mi := &file_register_proto_msgTypes[1]
|
2021-01-19 22:08:06 +03:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deprecated: Use Node.ProtoReflect.Descriptor instead.
|
|
|
|
func (*Node) Descriptor() ([]byte, []int) {
|
2021-01-29 15:01:10 +03:00
|
|
|
return file_register_proto_rawDescGZIP(), []int{1}
|
2021-01-19 22:08:06 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x *Node) GetId() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Id
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *Node) GetAddress() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Address
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *Node) GetPort() int64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.Port
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *Node) GetMetadata() map[string]string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Metadata
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// Endpoint is a endpoint provided by a service
|
|
|
|
type Endpoint struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
|
|
Request *Value `protobuf:"bytes,2,opt,name=request,proto3" json:"request,omitempty"`
|
|
|
|
Response *Value `protobuf:"bytes,3,opt,name=response,proto3" json:"response,omitempty"`
|
|
|
|
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"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *Endpoint) Reset() {
|
|
|
|
*x = Endpoint{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2021-01-29 15:01:10 +03:00
|
|
|
mi := &file_register_proto_msgTypes[2]
|
2021-01-19 22:08:06 +03:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *Endpoint) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*Endpoint) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *Endpoint) ProtoReflect() protoreflect.Message {
|
2021-01-29 15:01:10 +03:00
|
|
|
mi := &file_register_proto_msgTypes[2]
|
2021-01-19 22:08:06 +03:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deprecated: Use Endpoint.ProtoReflect.Descriptor instead.
|
|
|
|
func (*Endpoint) Descriptor() ([]byte, []int) {
|
2021-01-29 15:01:10 +03:00
|
|
|
return file_register_proto_rawDescGZIP(), []int{2}
|
2021-01-19 22:08:06 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x *Endpoint) GetName() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Name
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *Endpoint) GetRequest() *Value {
|
|
|
|
if x != nil {
|
|
|
|
return x.Request
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *Endpoint) GetResponse() *Value {
|
|
|
|
if x != nil {
|
|
|
|
return x.Response
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *Endpoint) GetMetadata() map[string]string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Metadata
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// Value is an opaque value for a request or response
|
|
|
|
type Value struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
|
|
|
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
|
|
|
|
Values []*Value `protobuf:"bytes,3,rep,name=values,proto3" json:"values,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *Value) Reset() {
|
|
|
|
*x = Value{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2021-01-29 15:01:10 +03:00
|
|
|
mi := &file_register_proto_msgTypes[3]
|
2021-01-19 22:08:06 +03:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *Value) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*Value) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *Value) ProtoReflect() protoreflect.Message {
|
2021-01-29 15:01:10 +03:00
|
|
|
mi := &file_register_proto_msgTypes[3]
|
2021-01-19 22:08:06 +03:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deprecated: Use Value.ProtoReflect.Descriptor instead.
|
|
|
|
func (*Value) Descriptor() ([]byte, []int) {
|
2021-01-29 15:01:10 +03:00
|
|
|
return file_register_proto_rawDescGZIP(), []int{3}
|
2021-01-19 22:08:06 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x *Value) GetName() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Name
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *Value) GetType() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Type
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *Value) GetValues() []*Value {
|
|
|
|
if x != nil {
|
|
|
|
return x.Values
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// Options are registry options
|
|
|
|
type Options struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
Ttl int64 `protobuf:"varint,1,opt,name=ttl,proto3" json:"ttl,omitempty"`
|
|
|
|
Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *Options) Reset() {
|
|
|
|
*x = Options{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2021-01-29 15:01:10 +03:00
|
|
|
mi := &file_register_proto_msgTypes[4]
|
2021-01-19 22:08:06 +03:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *Options) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*Options) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *Options) ProtoReflect() protoreflect.Message {
|
2021-01-29 15:01:10 +03:00
|
|
|
mi := &file_register_proto_msgTypes[4]
|
2021-01-19 22:08:06 +03:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deprecated: Use Options.ProtoReflect.Descriptor instead.
|
|
|
|
func (*Options) Descriptor() ([]byte, []int) {
|
2021-01-29 15:01:10 +03:00
|
|
|
return file_register_proto_rawDescGZIP(), []int{4}
|
2021-01-19 22:08:06 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x *Options) GetTtl() int64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.Ttl
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *Options) GetDomain() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Domain
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
// Result is returns by the watcher
|
|
|
|
type Result struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
Action string `protobuf:"bytes,1,opt,name=action,proto3" json:"action,omitempty"` // create, update, delete
|
|
|
|
Service *Service `protobuf:"bytes,2,opt,name=service,proto3" json:"service,omitempty"`
|
|
|
|
Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // unix timestamp
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *Result) Reset() {
|
|
|
|
*x = Result{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2021-01-29 15:01:10 +03:00
|
|
|
mi := &file_register_proto_msgTypes[5]
|
2021-01-19 22:08:06 +03:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *Result) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*Result) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *Result) ProtoReflect() protoreflect.Message {
|
2021-01-29 15:01:10 +03:00
|
|
|
mi := &file_register_proto_msgTypes[5]
|
2021-01-19 22:08:06 +03:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deprecated: Use Result.ProtoReflect.Descriptor instead.
|
|
|
|
func (*Result) Descriptor() ([]byte, []int) {
|
2021-01-29 15:01:10 +03:00
|
|
|
return file_register_proto_rawDescGZIP(), []int{5}
|
2021-01-19 22:08:06 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x *Result) GetAction() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Action
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *Result) GetService() *Service {
|
|
|
|
if x != nil {
|
|
|
|
return x.Service
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *Result) GetTimestamp() int64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.Timestamp
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
type EmptyResponse struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *EmptyResponse) Reset() {
|
|
|
|
*x = EmptyResponse{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2021-01-29 15:01:10 +03:00
|
|
|
mi := &file_register_proto_msgTypes[6]
|
2021-01-19 22:08:06 +03:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *EmptyResponse) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*EmptyResponse) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *EmptyResponse) ProtoReflect() protoreflect.Message {
|
2021-01-29 15:01:10 +03:00
|
|
|
mi := &file_register_proto_msgTypes[6]
|
2021-01-19 22:08:06 +03:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deprecated: Use EmptyResponse.ProtoReflect.Descriptor instead.
|
|
|
|
func (*EmptyResponse) Descriptor() ([]byte, []int) {
|
2021-01-29 15:01:10 +03:00
|
|
|
return file_register_proto_rawDescGZIP(), []int{6}
|
2021-01-19 22:08:06 +03:00
|
|
|
}
|
|
|
|
|
2021-01-29 15:01:10 +03:00
|
|
|
type LookupRequest struct {
|
2021-01-19 22:08:06 +03:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
|
|
|
|
Options *Options `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"`
|
|
|
|
}
|
|
|
|
|
2021-01-29 15:01:10 +03:00
|
|
|
func (x *LookupRequest) Reset() {
|
|
|
|
*x = LookupRequest{}
|
2021-01-19 22:08:06 +03:00
|
|
|
if protoimpl.UnsafeEnabled {
|
2021-01-29 15:01:10 +03:00
|
|
|
mi := &file_register_proto_msgTypes[7]
|
2021-01-19 22:08:06 +03:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-01-29 15:01:10 +03:00
|
|
|
func (x *LookupRequest) String() string {
|
2021-01-19 22:08:06 +03:00
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
2021-01-29 15:01:10 +03:00
|
|
|
func (*LookupRequest) ProtoMessage() {}
|
2021-01-19 22:08:06 +03:00
|
|
|
|
2021-01-29 15:01:10 +03:00
|
|
|
func (x *LookupRequest) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_register_proto_msgTypes[7]
|
2021-01-19 22:08:06 +03:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
}
|
|
|
|
|
2021-01-29 15:01:10 +03:00
|
|
|
// Deprecated: Use LookupRequest.ProtoReflect.Descriptor instead.
|
|
|
|
func (*LookupRequest) Descriptor() ([]byte, []int) {
|
|
|
|
return file_register_proto_rawDescGZIP(), []int{7}
|
2021-01-19 22:08:06 +03:00
|
|
|
}
|
|
|
|
|
2021-01-29 15:01:10 +03:00
|
|
|
func (x *LookupRequest) GetService() string {
|
2021-01-19 22:08:06 +03:00
|
|
|
if x != nil {
|
|
|
|
return x.Service
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2021-01-29 15:01:10 +03:00
|
|
|
func (x *LookupRequest) GetOptions() *Options {
|
2021-01-19 22:08:06 +03:00
|
|
|
if x != nil {
|
|
|
|
return x.Options
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2021-01-29 15:01:10 +03:00
|
|
|
type LookupResponse struct {
|
2021-01-19 22:08:06 +03:00
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
Services []*Service `protobuf:"bytes,1,rep,name=services,proto3" json:"services,omitempty"`
|
|
|
|
}
|
|
|
|
|
2021-01-29 15:01:10 +03:00
|
|
|
func (x *LookupResponse) Reset() {
|
|
|
|
*x = LookupResponse{}
|
2021-01-19 22:08:06 +03:00
|
|
|
if protoimpl.UnsafeEnabled {
|
2021-01-29 15:01:10 +03:00
|
|
|
mi := &file_register_proto_msgTypes[8]
|
2021-01-19 22:08:06 +03:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-01-29 15:01:10 +03:00
|
|
|
func (x *LookupResponse) String() string {
|
2021-01-19 22:08:06 +03:00
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
2021-01-29 15:01:10 +03:00
|
|
|
func (*LookupResponse) ProtoMessage() {}
|
2021-01-19 22:08:06 +03:00
|
|
|
|
2021-01-29 15:01:10 +03:00
|
|
|
func (x *LookupResponse) ProtoReflect() protoreflect.Message {
|
|
|
|
mi := &file_register_proto_msgTypes[8]
|
2021-01-19 22:08:06 +03:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
}
|
|
|
|
|
2021-01-29 15:01:10 +03:00
|
|
|
// Deprecated: Use LookupResponse.ProtoReflect.Descriptor instead.
|
|
|
|
func (*LookupResponse) Descriptor() ([]byte, []int) {
|
|
|
|
return file_register_proto_rawDescGZIP(), []int{8}
|
2021-01-19 22:08:06 +03:00
|
|
|
}
|
|
|
|
|
2021-01-29 15:01:10 +03:00
|
|
|
func (x *LookupResponse) GetServices() []*Service {
|
2021-01-19 22:08:06 +03:00
|
|
|
if x != nil {
|
|
|
|
return x.Services
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type ListRequest struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
Options *Options `protobuf:"bytes,1,opt,name=options,proto3" json:"options,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *ListRequest) Reset() {
|
|
|
|
*x = ListRequest{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2021-01-29 15:01:10 +03:00
|
|
|
mi := &file_register_proto_msgTypes[9]
|
2021-01-19 22:08:06 +03:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *ListRequest) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*ListRequest) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *ListRequest) ProtoReflect() protoreflect.Message {
|
2021-01-29 15:01:10 +03:00
|
|
|
mi := &file_register_proto_msgTypes[9]
|
2021-01-19 22:08:06 +03:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deprecated: Use ListRequest.ProtoReflect.Descriptor instead.
|
|
|
|
func (*ListRequest) Descriptor() ([]byte, []int) {
|
2021-01-29 15:01:10 +03:00
|
|
|
return file_register_proto_rawDescGZIP(), []int{9}
|
2021-01-19 22:08:06 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x *ListRequest) GetOptions() *Options {
|
|
|
|
if x != nil {
|
|
|
|
return x.Options
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type ListResponse struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
Services []*Service `protobuf:"bytes,1,rep,name=services,proto3" json:"services,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *ListResponse) Reset() {
|
|
|
|
*x = ListResponse{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2021-01-29 15:01:10 +03:00
|
|
|
mi := &file_register_proto_msgTypes[10]
|
2021-01-19 22:08:06 +03:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *ListResponse) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*ListResponse) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *ListResponse) ProtoReflect() protoreflect.Message {
|
2021-01-29 15:01:10 +03:00
|
|
|
mi := &file_register_proto_msgTypes[10]
|
2021-01-19 22:08:06 +03:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deprecated: Use ListResponse.ProtoReflect.Descriptor instead.
|
|
|
|
func (*ListResponse) Descriptor() ([]byte, []int) {
|
2021-01-29 15:01:10 +03:00
|
|
|
return file_register_proto_rawDescGZIP(), []int{10}
|
2021-01-19 22:08:06 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x *ListResponse) GetServices() []*Service {
|
|
|
|
if x != nil {
|
|
|
|
return x.Services
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
type WatchRequest struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
// service is optional
|
|
|
|
Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
|
|
|
|
Options *Options `protobuf:"bytes,2,opt,name=options,proto3" json:"options,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *WatchRequest) Reset() {
|
|
|
|
*x = WatchRequest{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2021-01-29 15:01:10 +03:00
|
|
|
mi := &file_register_proto_msgTypes[11]
|
2021-01-19 22:08:06 +03:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *WatchRequest) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*WatchRequest) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *WatchRequest) ProtoReflect() protoreflect.Message {
|
2021-01-29 15:01:10 +03:00
|
|
|
mi := &file_register_proto_msgTypes[11]
|
2021-01-19 22:08:06 +03:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deprecated: Use WatchRequest.ProtoReflect.Descriptor instead.
|
|
|
|
func (*WatchRequest) Descriptor() ([]byte, []int) {
|
2021-01-29 15:01:10 +03:00
|
|
|
return file_register_proto_rawDescGZIP(), []int{11}
|
2021-01-19 22:08:06 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x *WatchRequest) GetService() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Service
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *WatchRequest) GetOptions() *Options {
|
|
|
|
if x != nil {
|
|
|
|
return x.Options
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// Event is registry event
|
|
|
|
type Event struct {
|
|
|
|
state protoimpl.MessageState
|
|
|
|
sizeCache protoimpl.SizeCache
|
|
|
|
unknownFields protoimpl.UnknownFields
|
|
|
|
|
|
|
|
// Event Id
|
|
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
|
|
// type of event
|
|
|
|
Type EventType `protobuf:"varint,2,opt,name=type,proto3,enum=service.EventType" json:"type,omitempty"`
|
|
|
|
// unix timestamp of event
|
|
|
|
Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
|
|
|
|
// service entry
|
|
|
|
Service *Service `protobuf:"bytes,4,opt,name=service,proto3" json:"service,omitempty"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *Event) Reset() {
|
|
|
|
*x = Event{}
|
|
|
|
if protoimpl.UnsafeEnabled {
|
2021-01-29 15:01:10 +03:00
|
|
|
mi := &file_register_proto_msgTypes[12]
|
2021-01-19 22:08:06 +03:00
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *Event) String() string {
|
|
|
|
return protoimpl.X.MessageStringOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
func (*Event) ProtoMessage() {}
|
|
|
|
|
|
|
|
func (x *Event) ProtoReflect() protoreflect.Message {
|
2021-01-29 15:01:10 +03:00
|
|
|
mi := &file_register_proto_msgTypes[12]
|
2021-01-19 22:08:06 +03:00
|
|
|
if protoimpl.UnsafeEnabled && x != nil {
|
|
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
if ms.LoadMessageInfo() == nil {
|
|
|
|
ms.StoreMessageInfo(mi)
|
|
|
|
}
|
|
|
|
return ms
|
|
|
|
}
|
|
|
|
return mi.MessageOf(x)
|
|
|
|
}
|
|
|
|
|
|
|
|
// Deprecated: Use Event.ProtoReflect.Descriptor instead.
|
|
|
|
func (*Event) Descriptor() ([]byte, []int) {
|
2021-01-29 15:01:10 +03:00
|
|
|
return file_register_proto_rawDescGZIP(), []int{12}
|
2021-01-19 22:08:06 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
func (x *Event) GetId() string {
|
|
|
|
if x != nil {
|
|
|
|
return x.Id
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *Event) GetType() EventType {
|
|
|
|
if x != nil {
|
|
|
|
return x.Type
|
|
|
|
}
|
|
|
|
return EventType_Create
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *Event) GetTimestamp() int64 {
|
|
|
|
if x != nil {
|
|
|
|
return x.Timestamp
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x *Event) GetService() *Service {
|
|
|
|
if x != nil {
|
|
|
|
return x.Service
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2021-01-29 15:01:10 +03:00
|
|
|
var File_register_proto protoreflect.FileDescriptor
|
2021-01-19 22:08:06 +03:00
|
|
|
|
2021-01-29 15:01:10 +03:00
|
|
|
var file_register_proto_rawDesc = []byte{
|
|
|
|
0x0a, 0x0e, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
|
2021-01-19 22:08:06 +03:00
|
|
|
0x12, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x22, 0xb2, 0x02, 0x0a, 0x07, 0x53, 0x65,
|
|
|
|
0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20,
|
|
|
|
0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65, 0x72,
|
|
|
|
0x73, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72, 0x73,
|
|
|
|
0x69, 0x6f, 0x6e, 0x12, 0x3a, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18,
|
|
|
|
0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e,
|
|
|
|
0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61,
|
|
|
|
0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12,
|
|
|
|
0x2f, 0x0a, 0x09, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73, 0x18, 0x04, 0x20, 0x03,
|
|
|
|
0x28, 0x0b, 0x32, 0x11, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x45, 0x6e, 0x64,
|
|
|
|
0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x09, 0x65, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x73,
|
|
|
|
0x12, 0x23, 0x0a, 0x05, 0x6e, 0x6f, 0x64, 0x65, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32,
|
|
|
|
0x0d, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x52, 0x05,
|
|
|
|
0x6e, 0x6f, 0x64, 0x65, 0x73, 0x12, 0x2a, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73,
|
|
|
|
0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
|
|
|
|
0x2e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e,
|
|
|
|
0x73, 0x1a, 0x3b, 0x0a, 0x0d, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74,
|
|
|
|
0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52,
|
|
|
|
0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20,
|
|
|
|
0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xba,
|
|
|
|
0x01, 0x0a, 0x04, 0x4e, 0x6f, 0x64, 0x65, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20,
|
|
|
|
0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x18, 0x0a, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65,
|
|
|
|
0x73, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x61, 0x64, 0x64, 0x72, 0x65, 0x73,
|
|
|
|
0x73, 0x12, 0x12, 0x0a, 0x04, 0x70, 0x6f, 0x72, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52,
|
|
|
|
0x04, 0x70, 0x6f, 0x72, 0x74, 0x12, 0x37, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74,
|
|
|
|
0x61, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1b, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63,
|
|
|
|
0x65, 0x2e, 0x4e, 0x6f, 0x64, 0x65, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45,
|
|
|
|
0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x1a, 0x3b,
|
|
|
|
0x0a, 0x0d, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12,
|
|
|
|
0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65,
|
|
|
|
0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09,
|
|
|
|
0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0xee, 0x01, 0x0a, 0x08,
|
|
|
|
0x45, 0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65,
|
|
|
|
0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x28, 0x0a, 0x07,
|
|
|
|
0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e,
|
|
|
|
0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x07, 0x72,
|
|
|
|
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2a, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e,
|
|
|
|
0x73, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0e, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69,
|
|
|
|
0x63, 0x65, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e,
|
|
|
|
0x73, 0x65, 0x12, 0x3b, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x04,
|
|
|
|
0x20, 0x03, 0x28, 0x0b, 0x32, 0x1f, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x45,
|
|
|
|
0x6e, 0x64, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x2e, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61,
|
|
|
|
0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x1a,
|
|
|
|
0x3b, 0x0a, 0x0d, 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x45, 0x6e, 0x74, 0x72, 0x79,
|
|
|
|
0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b,
|
|
|
|
0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28,
|
|
|
|
0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x57, 0x0a, 0x05,
|
|
|
|
0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20,
|
|
|
|
0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x79, 0x70,
|
|
|
|
0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12, 0x26, 0x0a,
|
|
|
|
0x06, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x0e, 0x2e,
|
|
|
|
0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x06, 0x76,
|
|
|
|
0x61, 0x6c, 0x75, 0x65, 0x73, 0x22, 0x33, 0x0a, 0x07, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73,
|
|
|
|
0x12, 0x10, 0x0a, 0x03, 0x74, 0x74, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x74,
|
|
|
|
0x74, 0x6c, 0x12, 0x16, 0x0a, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x18, 0x02, 0x20, 0x01,
|
|
|
|
0x28, 0x09, 0x52, 0x06, 0x64, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x22, 0x6a, 0x0a, 0x06, 0x52, 0x65,
|
|
|
|
0x73, 0x75, 0x6c, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x01,
|
|
|
|
0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x2a, 0x0a, 0x07,
|
|
|
|
0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e,
|
|
|
|
0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52,
|
|
|
|
0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65,
|
|
|
|
0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x03, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d,
|
|
|
|
0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x22, 0x0f, 0x0a, 0x0d, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52,
|
2021-01-29 15:01:10 +03:00
|
|
|
0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x55, 0x0a, 0x0d, 0x4c, 0x6f, 0x6f, 0x6b, 0x75,
|
|
|
|
0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76,
|
|
|
|
0x69, 0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69,
|
|
|
|
0x63, 0x65, 0x12, 0x2a, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20,
|
|
|
|
0x01, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x4f, 0x70,
|
|
|
|
0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x3e,
|
|
|
|
0x0a, 0x0e, 0x4c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
|
|
|
|
0x12, 0x2c, 0x0a, 0x08, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03,
|
|
|
|
0x28, 0x0b, 0x32, 0x10, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x53, 0x65, 0x72,
|
|
|
|
0x76, 0x69, 0x63, 0x65, 0x52, 0x08, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x22, 0x39,
|
|
|
|
0x0a, 0x0b, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2a, 0x0a,
|
|
|
|
0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10,
|
|
|
|
0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73,
|
|
|
|
0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x3c, 0x0a, 0x0c, 0x4c, 0x69, 0x73,
|
|
|
|
0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2c, 0x0a, 0x08, 0x73, 0x65, 0x72,
|
|
|
|
0x76, 0x69, 0x63, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x10, 0x2e, 0x73, 0x65,
|
|
|
|
0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x08, 0x73,
|
|
|
|
0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x22, 0x54, 0x0a, 0x0c, 0x57, 0x61, 0x74, 0x63, 0x68,
|
|
|
|
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x18, 0x0a, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69,
|
|
|
|
0x63, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63,
|
|
|
|
0x65, 0x12, 0x2a, 0x0a, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x01,
|
|
|
|
0x28, 0x0b, 0x32, 0x10, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x4f, 0x70, 0x74,
|
|
|
|
0x69, 0x6f, 0x6e, 0x73, 0x52, 0x07, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x22, 0x89, 0x01,
|
|
|
|
0x0a, 0x05, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20,
|
|
|
|
0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x26, 0x0a, 0x04, 0x74, 0x79, 0x70, 0x65, 0x18,
|
|
|
|
0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x12, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e,
|
|
|
|
0x45, 0x76, 0x65, 0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x52, 0x04, 0x74, 0x79, 0x70, 0x65, 0x12,
|
|
|
|
0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x03, 0x20, 0x01,
|
|
|
|
0x28, 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x2a, 0x0a,
|
|
|
|
0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x10,
|
|
|
|
0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65,
|
|
|
|
0x52, 0x07, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2a, 0x2f, 0x0a, 0x09, 0x45, 0x76, 0x65,
|
|
|
|
0x6e, 0x74, 0x54, 0x79, 0x70, 0x65, 0x12, 0x0a, 0x0a, 0x06, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65,
|
|
|
|
0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x10, 0x01, 0x12, 0x0a,
|
|
|
|
0x0a, 0x06, 0x55, 0x70, 0x64, 0x61, 0x74, 0x65, 0x10, 0x02, 0x32, 0xb4, 0x02, 0x0a, 0x08, 0x52,
|
|
|
|
0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x12, 0x42, 0x0a, 0x0d, 0x4c, 0x6f, 0x6f, 0x6b, 0x75,
|
|
|
|
0x70, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x16, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69,
|
|
|
|
0x63, 0x65, 0x2e, 0x4c, 0x6f, 0x6f, 0x6b, 0x75, 0x70, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
|
|
|
|
0x1a, 0x17, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x4c, 0x6f, 0x6f, 0x6b, 0x75,
|
|
|
|
0x70, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x36, 0x0a, 0x08, 0x52,
|
|
|
|
0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x12, 0x10, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63,
|
|
|
|
0x65, 0x2e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x1a, 0x16, 0x2e, 0x73, 0x65, 0x72, 0x76,
|
|
|
|
0x69, 0x63, 0x65, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
|
|
|
|
0x65, 0x22, 0x00, 0x12, 0x38, 0x0a, 0x0a, 0x44, 0x65, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65,
|
|
|
|
0x72, 0x12, 0x10, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x53, 0x65, 0x72, 0x76,
|
|
|
|
0x69, 0x63, 0x65, 0x1a, 0x16, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x45, 0x6d,
|
|
|
|
0x70, 0x74, 0x79, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x3d, 0x0a,
|
|
|
|
0x0c, 0x4c, 0x69, 0x73, 0x74, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x73, 0x12, 0x14, 0x2e,
|
|
|
|
0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x52, 0x65, 0x71, 0x75,
|
|
|
|
0x65, 0x73, 0x74, 0x1a, 0x15, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x4c, 0x69,
|
|
|
|
0x73, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x00, 0x12, 0x33, 0x0a, 0x05,
|
|
|
|
0x57, 0x61, 0x74, 0x63, 0x68, 0x12, 0x15, 0x2e, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e,
|
|
|
|
0x57, 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x0f, 0x2e, 0x73,
|
|
|
|
0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x00, 0x30,
|
|
|
|
0x01, 0x42, 0x38, 0x5a, 0x36, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f,
|
|
|
|
0x75, 0x6e, 0x69, 0x73, 0x74, 0x61, 0x63, 0x6b, 0x2d, 0x6f, 0x72, 0x67, 0x2f, 0x6d, 0x69, 0x63,
|
|
|
|
0x72, 0x6f, 0x2d, 0x72, 0x65, 0x67, 0x69, 0x73, 0x74, 0x72, 0x79, 0x2d, 0x73, 0x65, 0x72, 0x76,
|
|
|
|
0x69, 0x63, 0x65, 0x3b, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f,
|
|
|
|
0x74, 0x6f, 0x33,
|
2021-01-19 22:08:06 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
var (
|
2021-01-29 15:01:10 +03:00
|
|
|
file_register_proto_rawDescOnce sync.Once
|
|
|
|
file_register_proto_rawDescData = file_register_proto_rawDesc
|
2021-01-19 22:08:06 +03:00
|
|
|
)
|
|
|
|
|
2021-01-29 15:01:10 +03:00
|
|
|
func file_register_proto_rawDescGZIP() []byte {
|
|
|
|
file_register_proto_rawDescOnce.Do(func() {
|
|
|
|
file_register_proto_rawDescData = protoimpl.X.CompressGZIP(file_register_proto_rawDescData)
|
2021-01-19 22:08:06 +03:00
|
|
|
})
|
2021-01-29 15:01:10 +03:00
|
|
|
return file_register_proto_rawDescData
|
|
|
|
}
|
|
|
|
|
|
|
|
var file_register_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
|
|
|
|
var file_register_proto_msgTypes = make([]protoimpl.MessageInfo, 16)
|
|
|
|
var file_register_proto_goTypes = []interface{}{
|
|
|
|
(EventType)(0), // 0: service.EventType
|
|
|
|
(*Service)(nil), // 1: service.Service
|
|
|
|
(*Node)(nil), // 2: service.Node
|
|
|
|
(*Endpoint)(nil), // 3: service.Endpoint
|
|
|
|
(*Value)(nil), // 4: service.Value
|
|
|
|
(*Options)(nil), // 5: service.Options
|
|
|
|
(*Result)(nil), // 6: service.Result
|
|
|
|
(*EmptyResponse)(nil), // 7: service.EmptyResponse
|
|
|
|
(*LookupRequest)(nil), // 8: service.LookupRequest
|
|
|
|
(*LookupResponse)(nil), // 9: service.LookupResponse
|
|
|
|
(*ListRequest)(nil), // 10: service.ListRequest
|
|
|
|
(*ListResponse)(nil), // 11: service.ListResponse
|
|
|
|
(*WatchRequest)(nil), // 12: service.WatchRequest
|
|
|
|
(*Event)(nil), // 13: service.Event
|
|
|
|
nil, // 14: service.Service.MetadataEntry
|
|
|
|
nil, // 15: service.Node.MetadataEntry
|
|
|
|
nil, // 16: service.Endpoint.MetadataEntry
|
|
|
|
}
|
|
|
|
var file_register_proto_depIdxs = []int32{
|
2021-01-19 22:08:06 +03:00
|
|
|
14, // 0: service.Service.metadata:type_name -> service.Service.MetadataEntry
|
|
|
|
3, // 1: service.Service.endpoints:type_name -> service.Endpoint
|
|
|
|
2, // 2: service.Service.nodes:type_name -> service.Node
|
|
|
|
5, // 3: service.Service.options:type_name -> service.Options
|
|
|
|
15, // 4: service.Node.metadata:type_name -> service.Node.MetadataEntry
|
|
|
|
4, // 5: service.Endpoint.request:type_name -> service.Value
|
|
|
|
4, // 6: service.Endpoint.response:type_name -> service.Value
|
|
|
|
16, // 7: service.Endpoint.metadata:type_name -> service.Endpoint.MetadataEntry
|
|
|
|
4, // 8: service.Value.values:type_name -> service.Value
|
|
|
|
1, // 9: service.Result.service:type_name -> service.Service
|
2021-01-29 15:01:10 +03:00
|
|
|
5, // 10: service.LookupRequest.options:type_name -> service.Options
|
|
|
|
1, // 11: service.LookupResponse.services:type_name -> service.Service
|
2021-01-19 22:08:06 +03:00
|
|
|
5, // 12: service.ListRequest.options:type_name -> service.Options
|
|
|
|
1, // 13: service.ListResponse.services:type_name -> service.Service
|
|
|
|
5, // 14: service.WatchRequest.options:type_name -> service.Options
|
|
|
|
0, // 15: service.Event.type:type_name -> service.EventType
|
|
|
|
1, // 16: service.Event.service:type_name -> service.Service
|
2021-01-29 15:01:10 +03:00
|
|
|
8, // 17: service.Register.LookupService:input_type -> service.LookupRequest
|
|
|
|
1, // 18: service.Register.Register:input_type -> service.Service
|
|
|
|
1, // 19: service.Register.Deregister:input_type -> service.Service
|
|
|
|
10, // 20: service.Register.ListServices:input_type -> service.ListRequest
|
|
|
|
12, // 21: service.Register.Watch:input_type -> service.WatchRequest
|
|
|
|
9, // 22: service.Register.LookupService:output_type -> service.LookupResponse
|
|
|
|
7, // 23: service.Register.Register:output_type -> service.EmptyResponse
|
|
|
|
7, // 24: service.Register.Deregister:output_type -> service.EmptyResponse
|
|
|
|
11, // 25: service.Register.ListServices:output_type -> service.ListResponse
|
|
|
|
6, // 26: service.Register.Watch:output_type -> service.Result
|
2021-01-19 22:08:06 +03:00
|
|
|
22, // [22:27] is the sub-list for method output_type
|
|
|
|
17, // [17:22] is the sub-list for method input_type
|
|
|
|
17, // [17:17] is the sub-list for extension type_name
|
|
|
|
17, // [17:17] is the sub-list for extension extendee
|
|
|
|
0, // [0:17] is the sub-list for field type_name
|
|
|
|
}
|
|
|
|
|
2021-01-29 15:01:10 +03:00
|
|
|
func init() { file_register_proto_init() }
|
|
|
|
func file_register_proto_init() {
|
|
|
|
if File_register_proto != nil {
|
2021-01-19 22:08:06 +03:00
|
|
|
return
|
|
|
|
}
|
|
|
|
if !protoimpl.UnsafeEnabled {
|
2021-01-29 15:01:10 +03:00
|
|
|
file_register_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
|
2021-01-19 22:08:06 +03:00
|
|
|
switch v := v.(*Service); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
2021-01-29 15:01:10 +03:00
|
|
|
file_register_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
|
2021-01-19 22:08:06 +03:00
|
|
|
switch v := v.(*Node); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
2021-01-29 15:01:10 +03:00
|
|
|
file_register_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
|
2021-01-19 22:08:06 +03:00
|
|
|
switch v := v.(*Endpoint); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
2021-01-29 15:01:10 +03:00
|
|
|
file_register_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
|
2021-01-19 22:08:06 +03:00
|
|
|
switch v := v.(*Value); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
2021-01-29 15:01:10 +03:00
|
|
|
file_register_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
|
2021-01-19 22:08:06 +03:00
|
|
|
switch v := v.(*Options); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
2021-01-29 15:01:10 +03:00
|
|
|
file_register_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
|
2021-01-19 22:08:06 +03:00
|
|
|
switch v := v.(*Result); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
2021-01-29 15:01:10 +03:00
|
|
|
file_register_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
|
2021-01-19 22:08:06 +03:00
|
|
|
switch v := v.(*EmptyResponse); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
2021-01-29 15:01:10 +03:00
|
|
|
file_register_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*LookupRequest); i {
|
2021-01-19 22:08:06 +03:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
2021-01-29 15:01:10 +03:00
|
|
|
file_register_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
|
|
|
|
switch v := v.(*LookupResponse); i {
|
2021-01-19 22:08:06 +03:00
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
2021-01-29 15:01:10 +03:00
|
|
|
file_register_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
|
2021-01-19 22:08:06 +03:00
|
|
|
switch v := v.(*ListRequest); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
2021-01-29 15:01:10 +03:00
|
|
|
file_register_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
|
2021-01-19 22:08:06 +03:00
|
|
|
switch v := v.(*ListResponse); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
2021-01-29 15:01:10 +03:00
|
|
|
file_register_proto_msgTypes[11].Exporter = func(v interface{}, i int) interface{} {
|
2021-01-19 22:08:06 +03:00
|
|
|
switch v := v.(*WatchRequest); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
2021-01-29 15:01:10 +03:00
|
|
|
file_register_proto_msgTypes[12].Exporter = func(v interface{}, i int) interface{} {
|
2021-01-19 22:08:06 +03:00
|
|
|
switch v := v.(*Event); i {
|
|
|
|
case 0:
|
|
|
|
return &v.state
|
|
|
|
case 1:
|
|
|
|
return &v.sizeCache
|
|
|
|
case 2:
|
|
|
|
return &v.unknownFields
|
|
|
|
default:
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
type x struct{}
|
|
|
|
out := protoimpl.TypeBuilder{
|
|
|
|
File: protoimpl.DescBuilder{
|
|
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
2021-01-29 15:01:10 +03:00
|
|
|
RawDescriptor: file_register_proto_rawDesc,
|
2021-01-19 22:08:06 +03:00
|
|
|
NumEnums: 1,
|
|
|
|
NumMessages: 16,
|
|
|
|
NumExtensions: 0,
|
|
|
|
NumServices: 1,
|
|
|
|
},
|
2021-01-29 15:01:10 +03:00
|
|
|
GoTypes: file_register_proto_goTypes,
|
|
|
|
DependencyIndexes: file_register_proto_depIdxs,
|
|
|
|
EnumInfos: file_register_proto_enumTypes,
|
|
|
|
MessageInfos: file_register_proto_msgTypes,
|
2021-01-19 22:08:06 +03:00
|
|
|
}.Build()
|
2021-01-29 15:01:10 +03:00
|
|
|
File_register_proto = out.File
|
|
|
|
file_register_proto_rawDesc = nil
|
|
|
|
file_register_proto_goTypes = nil
|
|
|
|
file_register_proto_depIdxs = nil
|
2021-01-19 22:08:06 +03:00
|
|
|
}
|