2019-06-26 16:23:10 +01:00
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
2019-09-11 15:55:32 +01:00
|
|
|
// source: router.proto
|
2019-06-26 16:23:10 +01:00
|
|
|
|
2019-07-26 18:07:36 -07:00
|
|
|
package go_micro_router
|
2019-06-26 16:23:10 +01:00
|
|
|
|
|
|
|
import (
|
|
|
|
fmt "fmt"
|
2019-07-26 12:43:17 +01:00
|
|
|
proto "github.com/golang/protobuf/proto"
|
2019-07-27 16:12:44 +01:00
|
|
|
math "math"
|
2019-06-26 16:23:10 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
|
|
var _ = proto.Marshal
|
|
|
|
var _ = fmt.Errorf
|
|
|
|
var _ = math.Inf
|
|
|
|
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
|
|
// is compatible with the proto package it is being compiled against.
|
|
|
|
// A compilation error at this line likely means your copy of the
|
|
|
|
// proto package needs to be updated.
|
|
|
|
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
|
|
|
|
|
2019-07-11 21:14:34 +01:00
|
|
|
// AdvertType defines the type of advert
|
|
|
|
type AdvertType int32
|
|
|
|
|
|
|
|
const (
|
|
|
|
AdvertType_AdvertAnnounce AdvertType = 0
|
|
|
|
AdvertType_AdvertUpdate AdvertType = 1
|
|
|
|
)
|
|
|
|
|
|
|
|
var AdvertType_name = map[int32]string{
|
|
|
|
0: "AdvertAnnounce",
|
|
|
|
1: "AdvertUpdate",
|
|
|
|
}
|
|
|
|
|
|
|
|
var AdvertType_value = map[string]int32{
|
|
|
|
"AdvertAnnounce": 0,
|
|
|
|
"AdvertUpdate": 1,
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x AdvertType) String() string {
|
|
|
|
return proto.EnumName(AdvertType_name, int32(x))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (AdvertType) EnumDescriptor() ([]byte, []int) {
|
2019-09-11 15:55:32 +01:00
|
|
|
return fileDescriptor_367072455c71aedc, []int{0}
|
2019-07-11 21:14:34 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// EventType defines the type of event
|
2019-07-10 17:21:55 +01:00
|
|
|
type EventType int32
|
|
|
|
|
|
|
|
const (
|
2019-07-10 18:37:46 +01:00
|
|
|
EventType_Create EventType = 0
|
2019-07-10 17:21:55 +01:00
|
|
|
EventType_Delete EventType = 1
|
|
|
|
EventType_Update EventType = 2
|
|
|
|
)
|
|
|
|
|
|
|
|
var EventType_name = map[int32]string{
|
2019-07-10 18:37:46 +01:00
|
|
|
0: "Create",
|
2019-07-10 17:21:55 +01:00
|
|
|
1: "Delete",
|
|
|
|
2: "Update",
|
|
|
|
}
|
|
|
|
|
|
|
|
var EventType_value = map[string]int32{
|
2019-07-10 18:37:46 +01:00
|
|
|
"Create": 0,
|
2019-07-10 17:21:55 +01:00
|
|
|
"Delete": 1,
|
|
|
|
"Update": 2,
|
|
|
|
}
|
|
|
|
|
|
|
|
func (x EventType) String() string {
|
|
|
|
return proto.EnumName(EventType_name, int32(x))
|
|
|
|
}
|
|
|
|
|
|
|
|
func (EventType) EnumDescriptor() ([]byte, []int) {
|
2019-09-11 15:55:32 +01:00
|
|
|
return fileDescriptor_367072455c71aedc, []int{1}
|
2019-07-25 23:24:46 +01:00
|
|
|
}
|
|
|
|
|
2019-07-29 18:57:40 +01:00
|
|
|
// Empty request
|
|
|
|
type Request struct {
|
2019-07-25 23:24:46 +01:00
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
2019-07-29 18:57:40 +01:00
|
|
|
func (m *Request) Reset() { *m = Request{} }
|
|
|
|
func (m *Request) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*Request) ProtoMessage() {}
|
|
|
|
func (*Request) Descriptor() ([]byte, []int) {
|
2019-09-11 15:55:32 +01:00
|
|
|
return fileDescriptor_367072455c71aedc, []int{0}
|
2019-07-25 23:24:46 +01:00
|
|
|
}
|
|
|
|
|
2019-07-29 18:57:40 +01:00
|
|
|
func (m *Request) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_Request.Unmarshal(m, b)
|
2019-07-25 23:24:46 +01:00
|
|
|
}
|
2019-07-29 18:57:40 +01:00
|
|
|
func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_Request.Marshal(b, m, deterministic)
|
2019-07-25 23:24:46 +01:00
|
|
|
}
|
2019-07-29 18:57:40 +01:00
|
|
|
func (m *Request) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_Request.Merge(m, src)
|
2019-07-25 23:24:46 +01:00
|
|
|
}
|
2019-07-29 18:57:40 +01:00
|
|
|
func (m *Request) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_Request.Size(m)
|
2019-07-25 23:24:46 +01:00
|
|
|
}
|
2019-07-29 18:57:40 +01:00
|
|
|
func (m *Request) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_Request.DiscardUnknown(m)
|
2019-07-25 23:24:46 +01:00
|
|
|
}
|
|
|
|
|
2019-07-29 18:57:40 +01:00
|
|
|
var xxx_messageInfo_Request proto.InternalMessageInfo
|
2019-07-25 23:24:46 +01:00
|
|
|
|
2019-09-11 15:55:32 +01:00
|
|
|
// Empty response
|
|
|
|
type Response struct {
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Response) Reset() { *m = Response{} }
|
|
|
|
func (m *Response) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*Response) ProtoMessage() {}
|
|
|
|
func (*Response) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_367072455c71aedc, []int{1}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Response) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_Response.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *Response) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_Response.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *Response) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_Response.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *Response) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_Response.Size(m)
|
|
|
|
}
|
|
|
|
func (m *Response) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_Response.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_Response proto.InternalMessageInfo
|
|
|
|
|
2019-07-25 23:24:46 +01:00
|
|
|
// ListResponse is returned by List
|
|
|
|
type ListResponse struct {
|
|
|
|
Routes []*Route `protobuf:"bytes,1,rep,name=routes,proto3" json:"routes,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ListResponse) Reset() { *m = ListResponse{} }
|
|
|
|
func (m *ListResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*ListResponse) ProtoMessage() {}
|
|
|
|
func (*ListResponse) Descriptor() ([]byte, []int) {
|
2019-09-11 15:55:32 +01:00
|
|
|
return fileDescriptor_367072455c71aedc, []int{2}
|
2019-07-25 23:24:46 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ListResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_ListResponse.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *ListResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_ListResponse.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *ListResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_ListResponse.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *ListResponse) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_ListResponse.Size(m)
|
|
|
|
}
|
|
|
|
func (m *ListResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_ListResponse.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_ListResponse proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *ListResponse) GetRoutes() []*Route {
|
|
|
|
if m != nil {
|
|
|
|
return m.Routes
|
|
|
|
}
|
|
|
|
return nil
|
2019-07-10 17:21:55 +01:00
|
|
|
}
|
|
|
|
|
2019-06-26 16:23:10 +01:00
|
|
|
// LookupRequest is made to Lookup
|
|
|
|
type LookupRequest struct {
|
|
|
|
Query *Query `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *LookupRequest) Reset() { *m = LookupRequest{} }
|
|
|
|
func (m *LookupRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*LookupRequest) ProtoMessage() {}
|
|
|
|
func (*LookupRequest) Descriptor() ([]byte, []int) {
|
2019-09-11 15:55:32 +01:00
|
|
|
return fileDescriptor_367072455c71aedc, []int{3}
|
2019-06-26 16:23:10 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *LookupRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_LookupRequest.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *LookupRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_LookupRequest.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *LookupRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_LookupRequest.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *LookupRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_LookupRequest.Size(m)
|
|
|
|
}
|
|
|
|
func (m *LookupRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_LookupRequest.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_LookupRequest proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *LookupRequest) GetQuery() *Query {
|
|
|
|
if m != nil {
|
|
|
|
return m.Query
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2019-07-10 17:21:55 +01:00
|
|
|
// LookupResponse is returned by Lookup
|
2019-06-26 16:23:10 +01:00
|
|
|
type LookupResponse struct {
|
|
|
|
Routes []*Route `protobuf:"bytes,1,rep,name=routes,proto3" json:"routes,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *LookupResponse) Reset() { *m = LookupResponse{} }
|
|
|
|
func (m *LookupResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*LookupResponse) ProtoMessage() {}
|
|
|
|
func (*LookupResponse) Descriptor() ([]byte, []int) {
|
2019-09-11 15:55:32 +01:00
|
|
|
return fileDescriptor_367072455c71aedc, []int{4}
|
2019-06-26 16:23:10 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *LookupResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_LookupResponse.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *LookupResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_LookupResponse.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *LookupResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_LookupResponse.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *LookupResponse) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_LookupResponse.Size(m)
|
|
|
|
}
|
|
|
|
func (m *LookupResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_LookupResponse.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_LookupResponse proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *LookupResponse) GetRoutes() []*Route {
|
|
|
|
if m != nil {
|
|
|
|
return m.Routes
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2019-09-11 15:55:32 +01:00
|
|
|
// QueryRequest queries Table for Routes
|
2019-07-29 18:57:40 +01:00
|
|
|
type QueryRequest struct {
|
|
|
|
Query *Query `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryRequest) Reset() { *m = QueryRequest{} }
|
|
|
|
func (m *QueryRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*QueryRequest) ProtoMessage() {}
|
|
|
|
func (*QueryRequest) Descriptor() ([]byte, []int) {
|
2019-09-11 15:55:32 +01:00
|
|
|
return fileDescriptor_367072455c71aedc, []int{5}
|
2019-07-29 18:57:40 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_QueryRequest.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *QueryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_QueryRequest.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *QueryRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_QueryRequest.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *QueryRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_QueryRequest.Size(m)
|
|
|
|
}
|
|
|
|
func (m *QueryRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_QueryRequest.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_QueryRequest proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *QueryRequest) GetQuery() *Query {
|
|
|
|
if m != nil {
|
|
|
|
return m.Query
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2019-09-11 15:55:32 +01:00
|
|
|
// QueryResponse is returned by Query
|
2019-07-29 18:57:40 +01:00
|
|
|
type QueryResponse struct {
|
|
|
|
Routes []*Route `protobuf:"bytes,1,rep,name=routes,proto3" json:"routes,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryResponse) Reset() { *m = QueryResponse{} }
|
|
|
|
func (m *QueryResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*QueryResponse) ProtoMessage() {}
|
|
|
|
func (*QueryResponse) Descriptor() ([]byte, []int) {
|
2019-09-11 15:55:32 +01:00
|
|
|
return fileDescriptor_367072455c71aedc, []int{6}
|
2019-07-29 18:57:40 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *QueryResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_QueryResponse.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *QueryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_QueryResponse.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *QueryResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_QueryResponse.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *QueryResponse) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_QueryResponse.Size(m)
|
|
|
|
}
|
|
|
|
func (m *QueryResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_QueryResponse.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_QueryResponse proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *QueryResponse) GetRoutes() []*Route {
|
|
|
|
if m != nil {
|
|
|
|
return m.Routes
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2019-07-10 17:21:55 +01:00
|
|
|
// WatchRequest is made to Watch Router
|
|
|
|
type WatchRequest struct {
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *WatchRequest) Reset() { *m = WatchRequest{} }
|
|
|
|
func (m *WatchRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*WatchRequest) ProtoMessage() {}
|
|
|
|
func (*WatchRequest) Descriptor() ([]byte, []int) {
|
2019-09-11 15:55:32 +01:00
|
|
|
return fileDescriptor_367072455c71aedc, []int{7}
|
2019-07-10 17:21:55 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *WatchRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_WatchRequest.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *WatchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_WatchRequest.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *WatchRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_WatchRequest.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *WatchRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_WatchRequest.Size(m)
|
|
|
|
}
|
|
|
|
func (m *WatchRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_WatchRequest.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_WatchRequest proto.InternalMessageInfo
|
|
|
|
|
2019-07-11 21:14:34 +01:00
|
|
|
// Advert is router advertsement streamed by Watch
|
|
|
|
type Advert struct {
|
|
|
|
// id of the advertising router
|
|
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
|
|
// type of advertisement
|
2019-07-26 18:07:36 -07:00
|
|
|
Type AdvertType `protobuf:"varint,2,opt,name=type,proto3,enum=go.micro.router.AdvertType" json:"type,omitempty"`
|
2019-07-11 21:14:34 +01:00
|
|
|
// unix timestamp of the advertisement
|
|
|
|
Timestamp int64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
|
|
|
|
// TTL of the Advert
|
|
|
|
Ttl int64 `protobuf:"varint,4,opt,name=ttl,proto3" json:"ttl,omitempty"`
|
|
|
|
// events is a list of advertised events
|
|
|
|
Events []*Event `protobuf:"bytes,5,rep,name=events,proto3" json:"events,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Advert) Reset() { *m = Advert{} }
|
|
|
|
func (m *Advert) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*Advert) ProtoMessage() {}
|
|
|
|
func (*Advert) Descriptor() ([]byte, []int) {
|
2019-09-11 15:55:32 +01:00
|
|
|
return fileDescriptor_367072455c71aedc, []int{8}
|
2019-07-11 21:14:34 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Advert) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_Advert.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *Advert) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_Advert.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *Advert) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_Advert.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *Advert) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_Advert.Size(m)
|
|
|
|
}
|
|
|
|
func (m *Advert) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_Advert.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_Advert proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *Advert) GetId() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Id
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Advert) GetType() AdvertType {
|
|
|
|
if m != nil {
|
|
|
|
return m.Type
|
|
|
|
}
|
|
|
|
return AdvertType_AdvertAnnounce
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Advert) GetTimestamp() int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.Timestamp
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Advert) GetTtl() int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.Ttl
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Advert) GetEvents() []*Event {
|
|
|
|
if m != nil {
|
|
|
|
return m.Events
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2019-09-11 15:55:32 +01:00
|
|
|
// Solicit solicits routes
|
|
|
|
type Solicit struct {
|
|
|
|
// id of the soliciting router
|
|
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Solicit) Reset() { *m = Solicit{} }
|
|
|
|
func (m *Solicit) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*Solicit) ProtoMessage() {}
|
|
|
|
func (*Solicit) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_367072455c71aedc, []int{9}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Solicit) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_Solicit.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *Solicit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_Solicit.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *Solicit) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_Solicit.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *Solicit) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_Solicit.Size(m)
|
|
|
|
}
|
|
|
|
func (m *Solicit) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_Solicit.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_Solicit proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *Solicit) GetId() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Id
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2019-07-24 21:07:04 +01:00
|
|
|
// ProcessResponse is returned by Process
|
|
|
|
type ProcessResponse struct {
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ProcessResponse) Reset() { *m = ProcessResponse{} }
|
|
|
|
func (m *ProcessResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*ProcessResponse) ProtoMessage() {}
|
|
|
|
func (*ProcessResponse) Descriptor() ([]byte, []int) {
|
2019-09-11 15:55:32 +01:00
|
|
|
return fileDescriptor_367072455c71aedc, []int{10}
|
2019-07-24 21:07:04 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ProcessResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_ProcessResponse.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *ProcessResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_ProcessResponse.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *ProcessResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_ProcessResponse.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *ProcessResponse) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_ProcessResponse.Size(m)
|
|
|
|
}
|
|
|
|
func (m *ProcessResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_ProcessResponse.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_ProcessResponse proto.InternalMessageInfo
|
|
|
|
|
2019-07-25 23:24:46 +01:00
|
|
|
// CreateResponse is returned by Create
|
|
|
|
type CreateResponse struct {
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *CreateResponse) Reset() { *m = CreateResponse{} }
|
|
|
|
func (m *CreateResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*CreateResponse) ProtoMessage() {}
|
|
|
|
func (*CreateResponse) Descriptor() ([]byte, []int) {
|
2019-09-11 15:55:32 +01:00
|
|
|
return fileDescriptor_367072455c71aedc, []int{11}
|
2019-07-25 23:24:46 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *CreateResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_CreateResponse.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *CreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_CreateResponse.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *CreateResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_CreateResponse.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *CreateResponse) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_CreateResponse.Size(m)
|
|
|
|
}
|
|
|
|
func (m *CreateResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_CreateResponse.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_CreateResponse proto.InternalMessageInfo
|
|
|
|
|
|
|
|
// DeleteResponse is returned by Delete
|
|
|
|
type DeleteResponse struct {
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *DeleteResponse) Reset() { *m = DeleteResponse{} }
|
|
|
|
func (m *DeleteResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*DeleteResponse) ProtoMessage() {}
|
|
|
|
func (*DeleteResponse) Descriptor() ([]byte, []int) {
|
2019-09-11 15:55:32 +01:00
|
|
|
return fileDescriptor_367072455c71aedc, []int{12}
|
2019-07-25 23:24:46 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *DeleteResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_DeleteResponse.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *DeleteResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_DeleteResponse.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *DeleteResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_DeleteResponse.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *DeleteResponse) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_DeleteResponse.Size(m)
|
|
|
|
}
|
|
|
|
func (m *DeleteResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_DeleteResponse.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_DeleteResponse proto.InternalMessageInfo
|
|
|
|
|
|
|
|
// UpdateResponse is returned by Update
|
|
|
|
type UpdateResponse struct {
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *UpdateResponse) Reset() { *m = UpdateResponse{} }
|
|
|
|
func (m *UpdateResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*UpdateResponse) ProtoMessage() {}
|
|
|
|
func (*UpdateResponse) Descriptor() ([]byte, []int) {
|
2019-09-11 15:55:32 +01:00
|
|
|
return fileDescriptor_367072455c71aedc, []int{13}
|
2019-07-25 23:24:46 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *UpdateResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_UpdateResponse.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *UpdateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_UpdateResponse.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *UpdateResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_UpdateResponse.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *UpdateResponse) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_UpdateResponse.Size(m)
|
|
|
|
}
|
|
|
|
func (m *UpdateResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_UpdateResponse.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_UpdateResponse proto.InternalMessageInfo
|
|
|
|
|
2019-07-11 21:14:34 +01:00
|
|
|
// Event is routing table event
|
|
|
|
type Event struct {
|
|
|
|
// type of event
|
2019-07-26 18:07:36 -07:00
|
|
|
Type EventType `protobuf:"varint,1,opt,name=type,proto3,enum=go.micro.router.EventType" json:"type,omitempty"`
|
2019-07-10 17:21:55 +01:00
|
|
|
// unix timestamp of event
|
|
|
|
Timestamp int64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
|
|
|
|
// service route
|
|
|
|
Route *Route `protobuf:"bytes,3,opt,name=route,proto3" json:"route,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
2019-07-11 21:14:34 +01:00
|
|
|
func (m *Event) Reset() { *m = Event{} }
|
|
|
|
func (m *Event) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*Event) ProtoMessage() {}
|
|
|
|
func (*Event) Descriptor() ([]byte, []int) {
|
2019-09-11 15:55:32 +01:00
|
|
|
return fileDescriptor_367072455c71aedc, []int{14}
|
2019-07-10 17:21:55 +01:00
|
|
|
}
|
|
|
|
|
2019-07-11 21:14:34 +01:00
|
|
|
func (m *Event) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_Event.Unmarshal(m, b)
|
2019-07-10 17:21:55 +01:00
|
|
|
}
|
2019-07-11 21:14:34 +01:00
|
|
|
func (m *Event) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_Event.Marshal(b, m, deterministic)
|
2019-07-10 17:21:55 +01:00
|
|
|
}
|
2019-07-11 21:14:34 +01:00
|
|
|
func (m *Event) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_Event.Merge(m, src)
|
2019-07-10 17:21:55 +01:00
|
|
|
}
|
2019-07-11 21:14:34 +01:00
|
|
|
func (m *Event) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_Event.Size(m)
|
2019-07-10 17:21:55 +01:00
|
|
|
}
|
2019-07-11 21:14:34 +01:00
|
|
|
func (m *Event) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_Event.DiscardUnknown(m)
|
2019-07-10 17:21:55 +01:00
|
|
|
}
|
|
|
|
|
2019-07-11 21:14:34 +01:00
|
|
|
var xxx_messageInfo_Event proto.InternalMessageInfo
|
2019-07-10 17:21:55 +01:00
|
|
|
|
2019-07-11 21:14:34 +01:00
|
|
|
func (m *Event) GetType() EventType {
|
2019-07-10 17:21:55 +01:00
|
|
|
if m != nil {
|
|
|
|
return m.Type
|
|
|
|
}
|
2019-07-10 18:37:46 +01:00
|
|
|
return EventType_Create
|
2019-07-10 17:21:55 +01:00
|
|
|
}
|
|
|
|
|
2019-07-11 21:14:34 +01:00
|
|
|
func (m *Event) GetTimestamp() int64 {
|
2019-07-10 17:21:55 +01:00
|
|
|
if m != nil {
|
|
|
|
return m.Timestamp
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2019-07-11 21:14:34 +01:00
|
|
|
func (m *Event) GetRoute() *Route {
|
2019-07-10 17:21:55 +01:00
|
|
|
if m != nil {
|
|
|
|
return m.Route
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2019-06-26 16:23:10 +01:00
|
|
|
// Query is passed in a LookupRequest
|
|
|
|
type Query struct {
|
2019-07-09 16:45:31 +01:00
|
|
|
// service to lookup
|
2019-07-26 12:43:17 +01:00
|
|
|
Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
|
|
|
|
// gateway to lookup
|
|
|
|
Gateway string `protobuf:"bytes,2,opt,name=gateway,proto3" json:"gateway,omitempty"`
|
|
|
|
// network to lookup
|
|
|
|
Network string `protobuf:"bytes,3,opt,name=network,proto3" json:"network,omitempty"`
|
2019-06-26 16:23:10 +01:00
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Query) Reset() { *m = Query{} }
|
|
|
|
func (m *Query) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*Query) ProtoMessage() {}
|
|
|
|
func (*Query) Descriptor() ([]byte, []int) {
|
2019-09-11 15:55:32 +01:00
|
|
|
return fileDescriptor_367072455c71aedc, []int{15}
|
2019-06-26 16:23:10 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Query) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_Query.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *Query) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_Query.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *Query) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_Query.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *Query) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_Query.Size(m)
|
|
|
|
}
|
|
|
|
func (m *Query) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_Query.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_Query proto.InternalMessageInfo
|
|
|
|
|
2019-07-09 16:45:31 +01:00
|
|
|
func (m *Query) GetService() string {
|
2019-06-26 16:23:10 +01:00
|
|
|
if m != nil {
|
2019-07-09 16:45:31 +01:00
|
|
|
return m.Service
|
2019-06-26 16:23:10 +01:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2019-07-26 12:43:17 +01:00
|
|
|
func (m *Query) GetGateway() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Gateway
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Query) GetNetwork() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Network
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2019-06-26 16:23:10 +01:00
|
|
|
// Route is a service route
|
|
|
|
type Route struct {
|
|
|
|
// service for the route
|
2019-07-09 16:45:31 +01:00
|
|
|
Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
|
|
|
|
// the address that advertise this route
|
|
|
|
Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
|
2019-06-26 16:23:10 +01:00
|
|
|
// gateway as the next hop
|
2019-07-09 16:45:31 +01:00
|
|
|
Gateway string `protobuf:"bytes,3,opt,name=gateway,proto3" json:"gateway,omitempty"`
|
2019-06-26 16:23:10 +01:00
|
|
|
// the network for this destination
|
|
|
|
Network string `protobuf:"bytes,4,opt,name=network,proto3" json:"network,omitempty"`
|
2019-08-28 08:41:19 +01:00
|
|
|
// router if the router id
|
|
|
|
Router string `protobuf:"bytes,5,opt,name=router,proto3" json:"router,omitempty"`
|
2019-07-09 16:45:31 +01:00
|
|
|
// the network link
|
2019-08-28 08:41:19 +01:00
|
|
|
Link string `protobuf:"bytes,6,opt,name=link,proto3" json:"link,omitempty"`
|
2019-06-26 16:23:10 +01:00
|
|
|
// the metric / score of this route
|
2019-08-28 08:41:19 +01:00
|
|
|
Metric int64 `protobuf:"varint,7,opt,name=metric,proto3" json:"metric,omitempty"`
|
2019-06-26 16:23:10 +01:00
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Route) Reset() { *m = Route{} }
|
|
|
|
func (m *Route) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*Route) ProtoMessage() {}
|
|
|
|
func (*Route) Descriptor() ([]byte, []int) {
|
2019-09-11 15:55:32 +01:00
|
|
|
return fileDescriptor_367072455c71aedc, []int{16}
|
2019-06-26 16:23:10 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Route) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_Route.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *Route) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_Route.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *Route) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_Route.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *Route) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_Route.Size(m)
|
|
|
|
}
|
|
|
|
func (m *Route) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_Route.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_Route proto.InternalMessageInfo
|
|
|
|
|
2019-07-09 16:45:31 +01:00
|
|
|
func (m *Route) GetService() string {
|
2019-06-26 16:23:10 +01:00
|
|
|
if m != nil {
|
2019-07-09 16:45:31 +01:00
|
|
|
return m.Service
|
2019-06-26 16:23:10 +01:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2019-07-09 16:45:31 +01:00
|
|
|
func (m *Route) GetAddress() string {
|
2019-06-26 16:23:10 +01:00
|
|
|
if m != nil {
|
2019-07-09 16:45:31 +01:00
|
|
|
return m.Address
|
2019-06-26 16:23:10 +01:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2019-07-09 16:45:31 +01:00
|
|
|
func (m *Route) GetGateway() string {
|
2019-06-26 16:23:10 +01:00
|
|
|
if m != nil {
|
2019-07-09 16:45:31 +01:00
|
|
|
return m.Gateway
|
2019-06-26 16:23:10 +01:00
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Route) GetNetwork() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Network
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2019-08-28 08:41:19 +01:00
|
|
|
func (m *Route) GetRouter() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Router
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2019-07-09 16:45:31 +01:00
|
|
|
func (m *Route) GetLink() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Link
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2019-06-26 16:23:10 +01:00
|
|
|
func (m *Route) GetMetric() int64 {
|
|
|
|
if m != nil {
|
|
|
|
return m.Metric
|
|
|
|
}
|
|
|
|
return 0
|
|
|
|
}
|
|
|
|
|
2019-07-29 18:57:40 +01:00
|
|
|
type Status struct {
|
|
|
|
Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"`
|
|
|
|
Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Status) Reset() { *m = Status{} }
|
|
|
|
func (m *Status) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*Status) ProtoMessage() {}
|
|
|
|
func (*Status) Descriptor() ([]byte, []int) {
|
2019-09-11 15:55:32 +01:00
|
|
|
return fileDescriptor_367072455c71aedc, []int{17}
|
2019-07-29 18:57:40 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Status) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_Status.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *Status) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_Status.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *Status) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_Status.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *Status) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_Status.Size(m)
|
|
|
|
}
|
|
|
|
func (m *Status) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_Status.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_Status proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *Status) GetCode() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Code
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Status) GetError() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Error
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
type StatusResponse struct {
|
|
|
|
Status *Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *StatusResponse) Reset() { *m = StatusResponse{} }
|
|
|
|
func (m *StatusResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*StatusResponse) ProtoMessage() {}
|
|
|
|
func (*StatusResponse) Descriptor() ([]byte, []int) {
|
2019-09-11 15:55:32 +01:00
|
|
|
return fileDescriptor_367072455c71aedc, []int{18}
|
2019-07-29 18:57:40 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *StatusResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_StatusResponse.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *StatusResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_StatusResponse.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *StatusResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_StatusResponse.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *StatusResponse) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_StatusResponse.Size(m)
|
|
|
|
}
|
|
|
|
func (m *StatusResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_StatusResponse.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_StatusResponse proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *StatusResponse) GetStatus() *Status {
|
|
|
|
if m != nil {
|
|
|
|
return m.Status
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2019-06-26 16:23:10 +01:00
|
|
|
func init() {
|
2019-07-26 18:07:36 -07:00
|
|
|
proto.RegisterEnum("go.micro.router.AdvertType", AdvertType_name, AdvertType_value)
|
|
|
|
proto.RegisterEnum("go.micro.router.EventType", EventType_name, EventType_value)
|
2019-07-29 18:57:40 +01:00
|
|
|
proto.RegisterType((*Request)(nil), "go.micro.router.Request")
|
2019-09-11 15:55:32 +01:00
|
|
|
proto.RegisterType((*Response)(nil), "go.micro.router.Response")
|
2019-07-25 23:24:46 +01:00
|
|
|
proto.RegisterType((*ListResponse)(nil), "go.micro.router.ListResponse")
|
2019-07-26 18:07:36 -07:00
|
|
|
proto.RegisterType((*LookupRequest)(nil), "go.micro.router.LookupRequest")
|
|
|
|
proto.RegisterType((*LookupResponse)(nil), "go.micro.router.LookupResponse")
|
2019-07-29 18:57:40 +01:00
|
|
|
proto.RegisterType((*QueryRequest)(nil), "go.micro.router.QueryRequest")
|
|
|
|
proto.RegisterType((*QueryResponse)(nil), "go.micro.router.QueryResponse")
|
2019-07-26 18:07:36 -07:00
|
|
|
proto.RegisterType((*WatchRequest)(nil), "go.micro.router.WatchRequest")
|
|
|
|
proto.RegisterType((*Advert)(nil), "go.micro.router.Advert")
|
2019-09-11 15:55:32 +01:00
|
|
|
proto.RegisterType((*Solicit)(nil), "go.micro.router.Solicit")
|
2019-07-26 18:07:36 -07:00
|
|
|
proto.RegisterType((*ProcessResponse)(nil), "go.micro.router.ProcessResponse")
|
2019-07-25 23:24:46 +01:00
|
|
|
proto.RegisterType((*CreateResponse)(nil), "go.micro.router.CreateResponse")
|
|
|
|
proto.RegisterType((*DeleteResponse)(nil), "go.micro.router.DeleteResponse")
|
|
|
|
proto.RegisterType((*UpdateResponse)(nil), "go.micro.router.UpdateResponse")
|
2019-07-26 18:07:36 -07:00
|
|
|
proto.RegisterType((*Event)(nil), "go.micro.router.Event")
|
|
|
|
proto.RegisterType((*Query)(nil), "go.micro.router.Query")
|
|
|
|
proto.RegisterType((*Route)(nil), "go.micro.router.Route")
|
2019-07-29 18:57:40 +01:00
|
|
|
proto.RegisterType((*Status)(nil), "go.micro.router.Status")
|
|
|
|
proto.RegisterType((*StatusResponse)(nil), "go.micro.router.StatusResponse")
|
|
|
|
}
|
|
|
|
|
2019-09-11 15:55:32 +01:00
|
|
|
func init() { proto.RegisterFile("router.proto", fileDescriptor_367072455c71aedc) }
|
|
|
|
|
|
|
|
var fileDescriptor_367072455c71aedc = []byte{
|
|
|
|
// 714 bytes of a gzipped FileDescriptorProto
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x56, 0xcd, 0x4e, 0xdb, 0x40,
|
|
|
|
0x10, 0xb6,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