2019-08-28 22:11:19 +03:00
|
|
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
|
|
// source: network.proto
|
|
|
|
|
|
|
|
package go_micro_network
|
|
|
|
|
|
|
|
import (
|
|
|
|
fmt "fmt"
|
|
|
|
proto "github.com/golang/protobuf/proto"
|
2019-08-30 14:29:26 +03:00
|
|
|
_ "github.com/micro/go-micro/router/proto"
|
2019-08-28 22:11:19 +03:00
|
|
|
math "math"
|
|
|
|
)
|
|
|
|
|
|
|
|
// 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-08-30 14:29:26 +03:00
|
|
|
// Empty request
|
|
|
|
type ListRequest struct {
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ListRequest) Reset() { *m = ListRequest{} }
|
|
|
|
func (m *ListRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*ListRequest) ProtoMessage() {}
|
|
|
|
func (*ListRequest) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_8571034d60397816, []int{0}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *ListRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_ListRequest.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *ListRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_ListRequest.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *ListRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_ListRequest.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *ListRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_ListRequest.Size(m)
|
|
|
|
}
|
|
|
|
func (m *ListRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_ListRequest.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_ListRequest proto.InternalMessageInfo
|
|
|
|
|
2019-09-10 15:31:02 +03:00
|
|
|
// ListResponse is returned by ListNodes
|
2019-08-30 14:29:26 +03:00
|
|
|
type ListResponse struct {
|
2019-09-10 15:31:02 +03:00
|
|
|
// network nodes
|
2019-08-30 14:29:26 +03:00
|
|
|
Nodes []*Node `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes,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) {
|
|
|
|
return fileDescriptor_8571034d60397816, []int{1}
|
|
|
|
}
|
|
|
|
|
|
|
|
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) GetNodes() []*Node {
|
|
|
|
if m != nil {
|
|
|
|
return m.Nodes
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2019-09-10 15:31:02 +03:00
|
|
|
// PeerRequest requests list of peers
|
2019-09-10 03:14:23 +03:00
|
|
|
type PeerRequest struct {
|
2019-09-10 15:31:02 +03:00
|
|
|
// node id
|
2019-09-02 13:42:45 +03:00
|
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
2019-09-10 03:14:23 +03:00
|
|
|
func (m *PeerRequest) Reset() { *m = PeerRequest{} }
|
|
|
|
func (m *PeerRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*PeerRequest) ProtoMessage() {}
|
|
|
|
func (*PeerRequest) Descriptor() ([]byte, []int) {
|
2019-09-02 13:42:45 +03:00
|
|
|
return fileDescriptor_8571034d60397816, []int{2}
|
|
|
|
}
|
|
|
|
|
2019-09-10 03:14:23 +03:00
|
|
|
func (m *PeerRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_PeerRequest.Unmarshal(m, b)
|
2019-09-02 13:42:45 +03:00
|
|
|
}
|
2019-09-10 03:14:23 +03:00
|
|
|
func (m *PeerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_PeerRequest.Marshal(b, m, deterministic)
|
2019-09-02 13:42:45 +03:00
|
|
|
}
|
2019-09-10 03:14:23 +03:00
|
|
|
func (m *PeerRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_PeerRequest.Merge(m, src)
|
2019-09-02 13:42:45 +03:00
|
|
|
}
|
2019-09-10 03:14:23 +03:00
|
|
|
func (m *PeerRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_PeerRequest.Size(m)
|
2019-09-02 13:42:45 +03:00
|
|
|
}
|
2019-09-10 03:14:23 +03:00
|
|
|
func (m *PeerRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_PeerRequest.DiscardUnknown(m)
|
2019-09-02 13:42:45 +03:00
|
|
|
}
|
|
|
|
|
2019-09-10 03:14:23 +03:00
|
|
|
var xxx_messageInfo_PeerRequest proto.InternalMessageInfo
|
2019-09-02 13:42:45 +03:00
|
|
|
|
2019-09-10 03:14:23 +03:00
|
|
|
func (m *PeerRequest) GetId() string {
|
2019-09-02 13:42:45 +03:00
|
|
|
if m != nil {
|
|
|
|
return m.Id
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
2019-09-10 15:31:02 +03:00
|
|
|
// PeerResponse is returned by ListPeers
|
2019-09-10 03:14:23 +03:00
|
|
|
type PeerResponse struct {
|
2019-09-10 20:32:25 +03:00
|
|
|
Peers []*Node `protobuf:"bytes,1,rep,name=peers,proto3" json:"peers,omitempty"`
|
2019-09-10 03:14:23 +03:00
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2019-09-02 13:42:45 +03:00
|
|
|
}
|
|
|
|
|
2019-09-10 03:14:23 +03:00
|
|
|
func (m *PeerResponse) Reset() { *m = PeerResponse{} }
|
|
|
|
func (m *PeerResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*PeerResponse) ProtoMessage() {}
|
|
|
|
func (*PeerResponse) Descriptor() ([]byte, []int) {
|
2019-09-02 13:42:45 +03:00
|
|
|
return fileDescriptor_8571034d60397816, []int{3}
|
|
|
|
}
|
|
|
|
|
2019-09-10 03:14:23 +03:00
|
|
|
func (m *PeerResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_PeerResponse.Unmarshal(m, b)
|
2019-09-02 13:42:45 +03:00
|
|
|
}
|
2019-09-10 03:14:23 +03:00
|
|
|
func (m *PeerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_PeerResponse.Marshal(b, m, deterministic)
|
2019-09-02 13:42:45 +03:00
|
|
|
}
|
2019-09-10 03:14:23 +03:00
|
|
|
func (m *PeerResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_PeerResponse.Merge(m, src)
|
2019-09-02 13:42:45 +03:00
|
|
|
}
|
2019-09-10 03:14:23 +03:00
|
|
|
func (m *PeerResponse) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_PeerResponse.Size(m)
|
2019-09-02 13:42:45 +03:00
|
|
|
}
|
2019-09-10 03:14:23 +03:00
|
|
|
func (m *PeerResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_PeerResponse.DiscardUnknown(m)
|
2019-09-02 13:42:45 +03:00
|
|
|
}
|
|
|
|
|
2019-09-10 03:14:23 +03:00
|
|
|
var xxx_messageInfo_PeerResponse proto.InternalMessageInfo
|
2019-09-02 13:42:45 +03:00
|
|
|
|
2019-09-10 20:32:25 +03:00
|
|
|
func (m *PeerResponse) GetPeers() []*Node {
|
2019-09-02 13:42:45 +03:00
|
|
|
if m != nil {
|
2019-09-10 03:14:23 +03:00
|
|
|
return m.Peers
|
2019-09-09 20:47:10 +03:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2019-09-10 20:32:25 +03:00
|
|
|
// TopologyRequest list node topology
|
|
|
|
type TopologyRequest struct {
|
|
|
|
// node id
|
2019-09-11 02:23:37 +03:00
|
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
2019-09-09 20:47:10 +03:00
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
2019-09-10 20:32:25 +03:00
|
|
|
func (m *TopologyRequest) Reset() { *m = TopologyRequest{} }
|
|
|
|
func (m *TopologyRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*TopologyRequest) ProtoMessage() {}
|
|
|
|
func (*TopologyRequest) Descriptor() ([]byte, []int) {
|
2019-09-09 20:47:10 +03:00
|
|
|
return fileDescriptor_8571034d60397816, []int{4}
|
|
|
|
}
|
|
|
|
|
2019-09-10 20:32:25 +03:00
|
|
|
func (m *TopologyRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_TopologyRequest.Unmarshal(m, b)
|
2019-09-09 20:47:10 +03:00
|
|
|
}
|
2019-09-10 20:32:25 +03:00
|
|
|
func (m *TopologyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_TopologyRequest.Marshal(b, m, deterministic)
|
2019-09-09 20:47:10 +03:00
|
|
|
}
|
2019-09-10 20:32:25 +03:00
|
|
|
func (m *TopologyRequest) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_TopologyRequest.Merge(m, src)
|
2019-09-09 20:47:10 +03:00
|
|
|
}
|
2019-09-10 20:32:25 +03:00
|
|
|
func (m *TopologyRequest) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_TopologyRequest.Size(m)
|
2019-09-09 20:47:10 +03:00
|
|
|
}
|
2019-09-10 20:32:25 +03:00
|
|
|
func (m *TopologyRequest) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_TopologyRequest.DiscardUnknown(m)
|
2019-09-09 20:47:10 +03:00
|
|
|
}
|
|
|
|
|
2019-09-10 20:32:25 +03:00
|
|
|
var xxx_messageInfo_TopologyRequest proto.InternalMessageInfo
|
2019-09-09 20:47:10 +03:00
|
|
|
|
2019-09-10 20:32:25 +03:00
|
|
|
func (m *TopologyRequest) GetId() string {
|
2019-09-09 20:47:10 +03:00
|
|
|
if m != nil {
|
2019-09-10 20:32:25 +03:00
|
|
|
return m.Id
|
2019-09-09 20:47:10 +03:00
|
|
|
}
|
2019-09-10 20:32:25 +03:00
|
|
|
return ""
|
2019-09-09 20:47:10 +03:00
|
|
|
}
|
|
|
|
|
2019-09-10 20:32:25 +03:00
|
|
|
// TopologyResponse is returned by Topology
|
|
|
|
type TopologyResponse struct {
|
2019-09-11 02:23:37 +03:00
|
|
|
Topology *Peer `protobuf:"bytes,1,opt,name=topology,proto3" json:"topology,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2019-09-10 20:32:25 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *TopologyResponse) Reset() { *m = TopologyResponse{} }
|
|
|
|
func (m *TopologyResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*TopologyResponse) ProtoMessage() {}
|
|
|
|
func (*TopologyResponse) Descriptor() ([]byte, []int) {
|
|
|
|
return fileDescriptor_8571034d60397816, []int{5}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *TopologyResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_TopologyResponse.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *TopologyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_TopologyResponse.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *TopologyResponse) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_TopologyResponse.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *TopologyResponse) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_TopologyResponse.Size(m)
|
|
|
|
}
|
|
|
|
func (m *TopologyResponse) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_TopologyResponse.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_TopologyResponse proto.InternalMessageInfo
|
|
|
|
|
2019-09-11 02:23:37 +03:00
|
|
|
func (m *TopologyResponse) GetTopology() *Peer {
|
2019-09-10 20:32:25 +03:00
|
|
|
if m != nil {
|
|
|
|
return m.Topology
|
2019-09-02 13:42:45 +03:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2019-08-28 22:11:19 +03:00
|
|
|
// Node is network node
|
|
|
|
type Node struct {
|
2019-09-10 15:31:02 +03:00
|
|
|
// node id
|
2019-08-28 22:11:19 +03:00
|
|
|
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
|
|
// node address
|
|
|
|
Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Node) Reset() { *m = Node{} }
|
|
|
|
func (m *Node) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*Node) ProtoMessage() {}
|
|
|
|
func (*Node) Descriptor() ([]byte, []int) {
|
2019-09-10 20:32:25 +03:00
|
|
|
return fileDescriptor_8571034d60397816, []int{6}
|
2019-08-28 22:11:19 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Node) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_Node.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *Node) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_Node.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *Node) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_Node.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *Node) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_Node.Size(m)
|
|
|
|
}
|
|
|
|
func (m *Node) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_Node.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_Node proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *Node) GetId() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Id
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Node) GetAddress() string {
|
|
|
|
if m != nil {
|
|
|
|
return m.Address
|
|
|
|
}
|
|
|
|
return ""
|
|
|
|
}
|
|
|
|
|
|
|
|
// Connect is sent when the node connects to the network
|
|
|
|
type Connect struct {
|
|
|
|
// network mode
|
|
|
|
Node *Node `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Connect) Reset() { *m = Connect{} }
|
|
|
|
func (m *Connect) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*Connect) ProtoMessage() {}
|
|
|
|
func (*Connect) Descriptor() ([]byte, []int) {
|
2019-09-11 02:23:37 +03:00
|
|
|
return fileDescriptor_8571034d60397816, []int{7}
|
2019-08-28 22:11:19 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Connect) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_Connect.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *Connect) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_Connect.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *Connect) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_Connect.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *Connect) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_Connect.Size(m)
|
|
|
|
}
|
|
|
|
func (m *Connect) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_Connect.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_Connect proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *Connect) GetNode() *Node {
|
|
|
|
if m != nil {
|
|
|
|
return m.Node
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// Close is sent when the node disconnects from the network
|
|
|
|
type Close struct {
|
2019-09-02 13:42:45 +03:00
|
|
|
// network node
|
2019-08-28 22:11:19 +03:00
|
|
|
Node *Node `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Close) Reset() { *m = Close{} }
|
|
|
|
func (m *Close) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*Close) ProtoMessage() {}
|
|
|
|
func (*Close) Descriptor() ([]byte, []int) {
|
2019-09-11 02:23:37 +03:00
|
|
|
return fileDescriptor_8571034d60397816, []int{8}
|
2019-08-28 22:11:19 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
func (m *Close) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_Close.Unmarshal(m, b)
|
|
|
|
}
|
|
|
|
func (m *Close) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_Close.Marshal(b, m, deterministic)
|
|
|
|
}
|
|
|
|
func (m *Close) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_Close.Merge(m, src)
|
|
|
|
}
|
|
|
|
func (m *Close) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_Close.Size(m)
|
|
|
|
}
|
|
|
|
func (m *Close) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_Close.DiscardUnknown(m)
|
|
|
|
}
|
|
|
|
|
|
|
|
var xxx_messageInfo_Close proto.InternalMessageInfo
|
|
|
|
|
|
|
|
func (m *Close) GetNode() *Node {
|
|
|
|
if m != nil {
|
|
|
|
return m.Node
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2019-09-10 15:31:02 +03:00
|
|
|
// Solicit is sent when soliciting routes from the network nodes
|
2019-09-05 18:04:44 +03:00
|
|
|
type Solicit struct {
|
|
|
|
// network node
|
|
|
|
Node *Node `protobuf:"bytes,1,opt,name=node,proto3" json:"node,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) {
|
2019-09-11 02:23:37 +03:00
|
|
|
return fileDescriptor_8571034d60397816, []int{9}
|
2019-09-05 18:04:44 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
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) GetNode() *Node {
|
|
|
|
if m != nil {
|
|
|
|
return m.Node
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2019-09-10 15:31:02 +03:00
|
|
|
// Peer is used to advertise node peers
|
2019-09-10 03:14:23 +03:00
|
|
|
type Peer struct {
|
2019-09-02 13:42:45 +03:00
|
|
|
// network node
|
2019-08-28 22:11:19 +03:00
|
|
|
Node *Node `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"`
|
2019-09-10 15:31:02 +03:00
|
|
|
// node peers
|
2019-09-10 03:14:23 +03:00
|
|
|
Peers []*Peer `protobuf:"bytes,2,rep,name=peers,proto3" json:"peers,omitempty"`
|
|
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
XXX_unrecognized []byte `json:"-"`
|
|
|
|
XXX_sizecache int32 `json:"-"`
|
2019-08-28 22:11:19 +03:00
|
|
|
}
|
|
|
|
|
2019-09-10 03:14:23 +03:00
|
|
|
func (m *Peer) Reset() { *m = Peer{} }
|
|
|
|
func (m *Peer) String() string { return proto.CompactTextString(m) }
|
|
|
|
func (*Peer) ProtoMessage() {}
|
|
|
|
func (*Peer) Descriptor() ([]byte, []int) {
|
2019-09-11 02:23:37 +03:00
|
|
|
return fileDescriptor_8571034d60397816, []int{10}
|
2019-08-28 22:11:19 +03:00
|
|
|
}
|
|
|
|
|
2019-09-10 03:14:23 +03:00
|
|
|
func (m *Peer) XXX_Unmarshal(b []byte) error {
|
|
|
|
return xxx_messageInfo_Peer.Unmarshal(m, b)
|
2019-08-28 22:11:19 +03:00
|
|
|
}
|
2019-09-10 03:14:23 +03:00
|
|
|
func (m *Peer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
return xxx_messageInfo_Peer.Marshal(b, m, deterministic)
|
2019-08-28 22:11:19 +03:00
|
|
|
}
|
2019-09-10 03:14:23 +03:00
|
|
|
func (m *Peer) XXX_Merge(src proto.Message) {
|
|
|
|
xxx_messageInfo_Peer.Merge(m, src)
|
2019-08-28 22:11:19 +03:00
|
|
|
}
|
2019-09-10 03:14:23 +03:00
|
|
|
func (m *Peer) XXX_Size() int {
|
|
|
|
return xxx_messageInfo_Peer.Size(m)
|
2019-08-28 22:11:19 +03:00
|
|
|
}
|
2019-09-10 03:14:23 +03:00
|
|
|
func (m *Peer) XXX_DiscardUnknown() {
|
|
|
|
xxx_messageInfo_Peer.DiscardUnknown(m)
|
2019-08-28 22:11:19 +03:00
|
|
|
}
|
|
|
|
|
2019-09-10 03:14:23 +03:00
|
|
|
var xxx_messageInfo_Peer proto.InternalMessageInfo
|
2019-08-28 22:11:19 +03:00
|
|
|
|
2019-09-10 03:14:23 +03:00
|
|
|
func (m *Peer) GetNode() *Node {
|
2019-08-28 22:11:19 +03:00
|
|
|
if m != nil {
|
|
|
|
return m.Node
|
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2019-09-10 03:14:23 +03:00
|
|
|
func (m *Peer) GetPeers() []*Peer {
|
2019-08-28 22:11:19 +03:00
|
|
|
if m != nil {
|
2019-09-10 03:14:23 +03:00
|
|
|
return m.Peers
|
2019-08-28 22:11:19 +03:00
|
|
|
}
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
func init() {
|
2019-08-30 14:29:26 +03:00
|
|
|
proto.RegisterType((*ListRequest)(nil), "go.micro.network.ListRequest")
|
|
|
|
proto.RegisterType((*ListResponse)(nil), "go.micro.network.ListResponse")
|
2019-09-10 03:14:23 +03:00
|
|
|
proto.RegisterType((*PeerRequest)(nil), "go.micro.network.PeerRequest")
|
|
|
|
proto.RegisterType((*PeerResponse)(nil), "go.micro.network.PeerResponse")
|
2019-09-10 20:32:25 +03:00
|
|
|
proto.RegisterType((*TopologyRequest)(nil), "go.micro.network.TopologyRequest")
|
|
|
|
proto.RegisterType((*TopologyResponse)(nil), "go.micro.network.TopologyResponse")
|
2019-08-28 22:11:19 +03:00
|
|
|
proto.RegisterType((*Node)(nil), "go.micro.network.Node")
|
|
|
|
proto.RegisterType((*Connect)(nil), "go.micro.network.Connect")
|
|
|
|
proto.RegisterType((*Close)(nil), "go.micro.network.Close")
|
2019-09-05 18:04:44 +03:00
|
|
|
proto.RegisterType((*Solicit)(nil), "go.micro.network.Solicit")
|
2019-09-10 03:14:23 +03:00
|
|
|
proto.RegisterType((*Peer)(nil), "go.micro.network.Peer")
|
2019-08-28 22:11:19 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
func init() { proto.RegisterFile("network.proto", fileDescriptor_8571034d60397816) }
|
|
|
|
|
|
|
|
var fileDescriptor_8571034d60397816 = []byte{
|
2019-09-11 02:23:37 +03:00
|
|
|
// 382 bytes of a gzipped FileDescriptorProto
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x93, 0x51, 0x4f, 0xea, 0x30,
|
|
|
|
0x14, 0xc7, 0x61, 0x17, 0xee, 0xe0, 0x70, 0xb9, 0x92, 0x3e, 0x98, 0x85, 0x04, 0x03, 0x7d, 0x22,
|
|
|
|
0x46, 0x87, 0x81, 0xf0, 0xe6, 0x1b, 0x89, 0xbe, 0x10, 0x62, 0xc0, 0x0f, 0xa0, 0x6c, 0xcd, 0x6c,
|
|
|
|
0x84, 0x9d, 0xd9, 0x96, 0x18, 0x3f, 0x9f, 0x5f, 0xcc, 0xb4, 0xdd, 0x18, 0x02, 0xd3, 0xf0, 0xb6,
|
|
|
|
0x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