Added Sync message
Sync message will be sent between peers when a new node connects/joins the network
This commit is contained in:
parent
802cc8239a
commit
63edfaa852
@ -1,5 +1,5 @@
|
|||||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||||
// source: github.com/micro/go-micro/network/proto/network.proto
|
// source: network.proto
|
||||||
|
|
||||||
package go_micro_network
|
package go_micro_network
|
||||||
|
|
||||||
@ -37,7 +37,7 @@ func (m *Query) Reset() { *m = Query{} }
|
|||||||
func (m *Query) String() string { return proto.CompactTextString(m) }
|
func (m *Query) String() string { return proto.CompactTextString(m) }
|
||||||
func (*Query) ProtoMessage() {}
|
func (*Query) ProtoMessage() {}
|
||||||
func (*Query) Descriptor() ([]byte, []int) {
|
func (*Query) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_0b7953b26a7c4730, []int{0}
|
return fileDescriptor_8571034d60397816, []int{0}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *Query) XXX_Unmarshal(b []byte) error {
|
func (m *Query) XXX_Unmarshal(b []byte) error {
|
||||||
@ -104,7 +104,7 @@ func (m *ConnectRequest) Reset() { *m = ConnectRequest{} }
|
|||||||
func (m *ConnectRequest) String() string { return proto.CompactTextString(m) }
|
func (m *ConnectRequest) String() string { return proto.CompactTextString(m) }
|
||||||
func (*ConnectRequest) ProtoMessage() {}
|
func (*ConnectRequest) ProtoMessage() {}
|
||||||
func (*ConnectRequest) Descriptor() ([]byte, []int) {
|
func (*ConnectRequest) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_0b7953b26a7c4730, []int{1}
|
return fileDescriptor_8571034d60397816, []int{1}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *ConnectRequest) XXX_Unmarshal(b []byte) error {
|
func (m *ConnectRequest) XXX_Unmarshal(b []byte) error {
|
||||||
@ -142,7 +142,7 @@ func (m *ConnectResponse) Reset() { *m = ConnectResponse{} }
|
|||||||
func (m *ConnectResponse) String() string { return proto.CompactTextString(m) }
|
func (m *ConnectResponse) String() string { return proto.CompactTextString(m) }
|
||||||
func (*ConnectResponse) ProtoMessage() {}
|
func (*ConnectResponse) ProtoMessage() {}
|
||||||
func (*ConnectResponse) Descriptor() ([]byte, []int) {
|
func (*ConnectResponse) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_0b7953b26a7c4730, []int{2}
|
return fileDescriptor_8571034d60397816, []int{2}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *ConnectResponse) XXX_Unmarshal(b []byte) error {
|
func (m *ConnectResponse) XXX_Unmarshal(b []byte) error {
|
||||||
@ -176,7 +176,7 @@ func (m *NodesRequest) Reset() { *m = NodesRequest{} }
|
|||||||
func (m *NodesRequest) String() string { return proto.CompactTextString(m) }
|
func (m *NodesRequest) String() string { return proto.CompactTextString(m) }
|
||||||
func (*NodesRequest) ProtoMessage() {}
|
func (*NodesRequest) ProtoMessage() {}
|
||||||
func (*NodesRequest) Descriptor() ([]byte, []int) {
|
func (*NodesRequest) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_0b7953b26a7c4730, []int{3}
|
return fileDescriptor_8571034d60397816, []int{3}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *NodesRequest) XXX_Unmarshal(b []byte) error {
|
func (m *NodesRequest) XXX_Unmarshal(b []byte) error {
|
||||||
@ -217,7 +217,7 @@ func (m *NodesResponse) Reset() { *m = NodesResponse{} }
|
|||||||
func (m *NodesResponse) String() string { return proto.CompactTextString(m) }
|
func (m *NodesResponse) String() string { return proto.CompactTextString(m) }
|
||||||
func (*NodesResponse) ProtoMessage() {}
|
func (*NodesResponse) ProtoMessage() {}
|
||||||
func (*NodesResponse) Descriptor() ([]byte, []int) {
|
func (*NodesResponse) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_0b7953b26a7c4730, []int{4}
|
return fileDescriptor_8571034d60397816, []int{4}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *NodesResponse) XXX_Unmarshal(b []byte) error {
|
func (m *NodesResponse) XXX_Unmarshal(b []byte) error {
|
||||||
@ -257,7 +257,7 @@ func (m *GraphRequest) Reset() { *m = GraphRequest{} }
|
|||||||
func (m *GraphRequest) String() string { return proto.CompactTextString(m) }
|
func (m *GraphRequest) String() string { return proto.CompactTextString(m) }
|
||||||
func (*GraphRequest) ProtoMessage() {}
|
func (*GraphRequest) ProtoMessage() {}
|
||||||
func (*GraphRequest) Descriptor() ([]byte, []int) {
|
func (*GraphRequest) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_0b7953b26a7c4730, []int{5}
|
return fileDescriptor_8571034d60397816, []int{5}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *GraphRequest) XXX_Unmarshal(b []byte) error {
|
func (m *GraphRequest) XXX_Unmarshal(b []byte) error {
|
||||||
@ -296,7 +296,7 @@ func (m *GraphResponse) Reset() { *m = GraphResponse{} }
|
|||||||
func (m *GraphResponse) String() string { return proto.CompactTextString(m) }
|
func (m *GraphResponse) String() string { return proto.CompactTextString(m) }
|
||||||
func (*GraphResponse) ProtoMessage() {}
|
func (*GraphResponse) ProtoMessage() {}
|
||||||
func (*GraphResponse) Descriptor() ([]byte, []int) {
|
func (*GraphResponse) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_0b7953b26a7c4730, []int{6}
|
return fileDescriptor_8571034d60397816, []int{6}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *GraphResponse) XXX_Unmarshal(b []byte) error {
|
func (m *GraphResponse) XXX_Unmarshal(b []byte) error {
|
||||||
@ -336,7 +336,7 @@ func (m *RoutesRequest) Reset() { *m = RoutesRequest{} }
|
|||||||
func (m *RoutesRequest) String() string { return proto.CompactTextString(m) }
|
func (m *RoutesRequest) String() string { return proto.CompactTextString(m) }
|
||||||
func (*RoutesRequest) ProtoMessage() {}
|
func (*RoutesRequest) ProtoMessage() {}
|
||||||
func (*RoutesRequest) Descriptor() ([]byte, []int) {
|
func (*RoutesRequest) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_0b7953b26a7c4730, []int{7}
|
return fileDescriptor_8571034d60397816, []int{7}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *RoutesRequest) XXX_Unmarshal(b []byte) error {
|
func (m *RoutesRequest) XXX_Unmarshal(b []byte) error {
|
||||||
@ -375,7 +375,7 @@ func (m *RoutesResponse) Reset() { *m = RoutesResponse{} }
|
|||||||
func (m *RoutesResponse) String() string { return proto.CompactTextString(m) }
|
func (m *RoutesResponse) String() string { return proto.CompactTextString(m) }
|
||||||
func (*RoutesResponse) ProtoMessage() {}
|
func (*RoutesResponse) ProtoMessage() {}
|
||||||
func (*RoutesResponse) Descriptor() ([]byte, []int) {
|
func (*RoutesResponse) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_0b7953b26a7c4730, []int{8}
|
return fileDescriptor_8571034d60397816, []int{8}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *RoutesResponse) XXX_Unmarshal(b []byte) error {
|
func (m *RoutesResponse) XXX_Unmarshal(b []byte) error {
|
||||||
@ -413,7 +413,7 @@ func (m *ServicesRequest) Reset() { *m = ServicesRequest{} }
|
|||||||
func (m *ServicesRequest) String() string { return proto.CompactTextString(m) }
|
func (m *ServicesRequest) String() string { return proto.CompactTextString(m) }
|
||||||
func (*ServicesRequest) ProtoMessage() {}
|
func (*ServicesRequest) ProtoMessage() {}
|
||||||
func (*ServicesRequest) Descriptor() ([]byte, []int) {
|
func (*ServicesRequest) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_0b7953b26a7c4730, []int{9}
|
return fileDescriptor_8571034d60397816, []int{9}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *ServicesRequest) XXX_Unmarshal(b []byte) error {
|
func (m *ServicesRequest) XXX_Unmarshal(b []byte) error {
|
||||||
@ -445,7 +445,7 @@ func (m *ServicesResponse) Reset() { *m = ServicesResponse{} }
|
|||||||
func (m *ServicesResponse) String() string { return proto.CompactTextString(m) }
|
func (m *ServicesResponse) String() string { return proto.CompactTextString(m) }
|
||||||
func (*ServicesResponse) ProtoMessage() {}
|
func (*ServicesResponse) ProtoMessage() {}
|
||||||
func (*ServicesResponse) Descriptor() ([]byte, []int) {
|
func (*ServicesResponse) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_0b7953b26a7c4730, []int{10}
|
return fileDescriptor_8571034d60397816, []int{10}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *ServicesResponse) XXX_Unmarshal(b []byte) error {
|
func (m *ServicesResponse) XXX_Unmarshal(b []byte) error {
|
||||||
@ -492,7 +492,7 @@ func (m *Node) Reset() { *m = Node{} }
|
|||||||
func (m *Node) String() string { return proto.CompactTextString(m) }
|
func (m *Node) String() string { return proto.CompactTextString(m) }
|
||||||
func (*Node) ProtoMessage() {}
|
func (*Node) ProtoMessage() {}
|
||||||
func (*Node) Descriptor() ([]byte, []int) {
|
func (*Node) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_0b7953b26a7c4730, []int{11}
|
return fileDescriptor_8571034d60397816, []int{11}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *Node) XXX_Unmarshal(b []byte) error {
|
func (m *Node) XXX_Unmarshal(b []byte) error {
|
||||||
@ -554,7 +554,7 @@ func (m *Connect) Reset() { *m = Connect{} }
|
|||||||
func (m *Connect) String() string { return proto.CompactTextString(m) }
|
func (m *Connect) String() string { return proto.CompactTextString(m) }
|
||||||
func (*Connect) ProtoMessage() {}
|
func (*Connect) ProtoMessage() {}
|
||||||
func (*Connect) Descriptor() ([]byte, []int) {
|
func (*Connect) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_0b7953b26a7c4730, []int{12}
|
return fileDescriptor_8571034d60397816, []int{12}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *Connect) XXX_Unmarshal(b []byte) error {
|
func (m *Connect) XXX_Unmarshal(b []byte) error {
|
||||||
@ -595,7 +595,7 @@ func (m *Close) Reset() { *m = Close{} }
|
|||||||
func (m *Close) String() string { return proto.CompactTextString(m) }
|
func (m *Close) String() string { return proto.CompactTextString(m) }
|
||||||
func (*Close) ProtoMessage() {}
|
func (*Close) ProtoMessage() {}
|
||||||
func (*Close) Descriptor() ([]byte, []int) {
|
func (*Close) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_0b7953b26a7c4730, []int{13}
|
return fileDescriptor_8571034d60397816, []int{13}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *Close) XXX_Unmarshal(b []byte) error {
|
func (m *Close) XXX_Unmarshal(b []byte) error {
|
||||||
@ -638,7 +638,7 @@ func (m *Peer) Reset() { *m = Peer{} }
|
|||||||
func (m *Peer) String() string { return proto.CompactTextString(m) }
|
func (m *Peer) String() string { return proto.CompactTextString(m) }
|
||||||
func (*Peer) ProtoMessage() {}
|
func (*Peer) ProtoMessage() {}
|
||||||
func (*Peer) Descriptor() ([]byte, []int) {
|
func (*Peer) Descriptor() ([]byte, []int) {
|
||||||
return fileDescriptor_0b7953b26a7c4730, []int{14}
|
return fileDescriptor_8571034d60397816, []int{14}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *Peer) XXX_Unmarshal(b []byte) error {
|
func (m *Peer) XXX_Unmarshal(b []byte) error {
|
||||||
@ -673,6 +673,65 @@ func (m *Peer) GetPeers() []*Peer {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Sync is network sync message
|
||||||
|
type Sync struct {
|
||||||
|
// node address
|
||||||
|
Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
|
||||||
|
// node peers
|
||||||
|
Peers []*Peer `protobuf:"bytes,2,rep,name=peers,proto3" json:"peers,omitempty"`
|
||||||
|
// node routes
|
||||||
|
Routes []*proto1.Route `protobuf:"bytes,3,rep,name=routes,proto3" json:"routes,omitempty"`
|
||||||
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||||
|
XXX_unrecognized []byte `json:"-"`
|
||||||
|
XXX_sizecache int32 `json:"-"`
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *Sync) Reset() { *m = Sync{} }
|
||||||
|
func (m *Sync) String() string { return proto.CompactTextString(m) }
|
||||||
|
func (*Sync) ProtoMessage() {}
|
||||||
|
func (*Sync) Descriptor() ([]byte, []int) {
|
||||||
|
return fileDescriptor_8571034d60397816, []int{15}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *Sync) XXX_Unmarshal(b []byte) error {
|
||||||
|
return xxx_messageInfo_Sync.Unmarshal(m, b)
|
||||||
|
}
|
||||||
|
func (m *Sync) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||||
|
return xxx_messageInfo_Sync.Marshal(b, m, deterministic)
|
||||||
|
}
|
||||||
|
func (m *Sync) XXX_Merge(src proto.Message) {
|
||||||
|
xxx_messageInfo_Sync.Merge(m, src)
|
||||||
|
}
|
||||||
|
func (m *Sync) XXX_Size() int {
|
||||||
|
return xxx_messageInfo_Sync.Size(m)
|
||||||
|
}
|
||||||
|
func (m *Sync) XXX_DiscardUnknown() {
|
||||||
|
xxx_messageInfo_Sync.DiscardUnknown(m)
|
||||||
|
}
|
||||||
|
|
||||||
|
var xxx_messageInfo_Sync proto.InternalMessageInfo
|
||||||
|
|
||||||
|
func (m *Sync) GetAddress() string {
|
||||||
|
if m != nil {
|
||||||
|
return m.Address
|
||||||
|
}
|
||||||
|
return ""
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *Sync) GetPeers() []*Peer {
|
||||||
|
if m != nil {
|
||||||
|
return m.Peers
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
func (m *Sync) GetRoutes() []*proto1.Route {
|
||||||
|
if m != nil {
|
||||||
|
return m.Routes
|
||||||
|
}
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
proto.RegisterType((*Query)(nil), "go.micro.network.Query")
|
proto.RegisterType((*Query)(nil), "go.micro.network.Query")
|
||||||
proto.RegisterType((*ConnectRequest)(nil), "go.micro.network.ConnectRequest")
|
proto.RegisterType((*ConnectRequest)(nil), "go.micro.network.ConnectRequest")
|
||||||
@ -690,48 +749,49 @@ func init() {
|
|||||||
proto.RegisterType((*Connect)(nil), "go.micro.network.Connect")
|
proto.RegisterType((*Connect)(nil), "go.micro.network.Connect")
|
||||||
proto.RegisterType((*Close)(nil), "go.micro.network.Close")
|
proto.RegisterType((*Close)(nil), "go.micro.network.Close")
|
||||||
proto.RegisterType((*Peer)(nil), "go.micro.network.Peer")
|
proto.RegisterType((*Peer)(nil), "go.micro.network.Peer")
|
||||||
|
proto.RegisterType((*Sync)(nil), "go.micro.network.Sync")
|
||||||
}
|
}
|
||||||
|
|
||||||
func init() {
|
func init() { proto.RegisterFile("network.proto", fileDescriptor_8571034d60397816) }
|
||||||
proto.RegisterFile("github.com/micro/go-micro/network/proto/network.proto", fileDescriptor_0b7953b26a7c4730)
|
|
||||||
}
|
|
||||||
|
|
||||||
var fileDescriptor_0b7953b26a7c4730 = []byte{
|
var fileDescriptor_8571034d60397816 = []byte{
|
||||||
// 576 bytes of a gzipped FileDescriptorProto
|
// 594 bytes of a gzipped FileDescriptorProto
|
||||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0x61, 0x6a, 0xdb, 0x4c,
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x55, 0xc1, 0x6a, 0xdb, 0x40,
|
||||||
0x10, 0x8d, 0x2c, 0xcb, 0x76, 0xe6, 0x8b, 0xfd, 0xb9, 0x4b, 0x49, 0x85, 0x7e, 0xb4, 0xee, 0xe2,
|
0x10, 0x8d, 0x2c, 0x29, 0x76, 0xa6, 0x91, 0xeb, 0x2e, 0x25, 0x15, 0x3a, 0xb4, 0xee, 0xe2, 0x43,
|
||||||
0x1f, 0xa1, 0x34, 0x32, 0x24, 0x04, 0x4a, 0x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x21, 0x99, 0xe8, 0x67, 0x4c, 0xdc, 0x4f,
|
||||||
0x1c, 0x64, 0x28, 0x1f, 0xa6, 0x23, 0x24, 0x3d, 0xfb, 0xd1, 0xca, 0xf1, 0x5f, 0x0e, 0x78, 0x3f,
|
0x47, 0xac, 0xaf, 0x19, 0xf0, 0xa3, 0xa1, 0xa3, 0x7f, 0x2c, 0x70, 0x7f, 0x2e, 0x98, 0x58, 0x12,
|
||||||
0x16, 0x28, 0x97, 0xcc, 0x87, 0x26, 0xe1, 0x7c, 0xa7, 0xe7, 0x1c, 0xec, 0x46, 0x79, 0xa8, 0x33,
|
0x1f, 0x9a, 0x88, 0xf3, 0xad, 0xae, 0x75, 0xb8, 0x17, 0xe5, 0xa1, 0xca, 0xc4, 0x49, 0x22, 0x58,
|
||||||
0x71, 0x92, 0x48, 0xcc, 0x32, 0xbf, 0x66, 0x33, 0x14, 0xea, 0xcc, 0x38, 0x56, 0xf8, 0x18, 0x2f,
|
0x96, 0xf9, 0x0d, 0x93, 0xc1, 0x50, 0x65, 0xc6, 0xb1, 0x64, 0x0f, 0xf1, 0xd2, 0xb7, 0x4d, 0x06,
|
||||||
0x7d, 0xd7, 0x66, 0x28, 0x64, 0xfb, 0xd0, 0xb0, 0x75, 0xfc, 0xba, 0x49, 0x50, 0xa4, 0x19, 0xf4,
|
0x43, 0x72, 0x00, 0xbb, 0xa6, 0x8f, 0xef, 0xe8, 0x04, 0x46, 0xaa, 0x02, 0xcf, 0xed, 0xbb, 0xa6,
|
||||||
0x6e, 0xdf, 0xb3, 0x0c, 0x0a, 0xf9, 0x29, 0x74, 0xce, 0x45, 0x9a, 0xe2, 0x48, 0x45, 0x78, 0xbf,
|
0x02, 0x43, 0x7a, 0x0a, 0xed, 0x73, 0x9e, 0xa6, 0x6c, 0x24, 0x23, 0x76, 0xb7, 0x60, 0x99, 0x24,
|
||||||
0xc0, 0x4c, 0xb1, 0x8f, 0xe0, 0xa5, 0x22, 0xc1, 0xcc, 0x77, 0x7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0x5b, 0x0a, 0x25, 0x2c, 0x06, 0x00, 0x00,
|
0xd0, 0xca, 0xd7, 0x91, 0x54, 0xcc, 0xe5, 0xc9, 0xf6, 0x06, 0xb4, 0x0e, 0x92, 0x93, 0x5e, 0xef,
|
||||||
|
0xea, 0x3f, 0x89, 0x93, 0xff, 0x01, 0x00, 0x00, 0xff, 0xff, 0x78, 0x0e, 0x14, 0x60, 0x84, 0x06,
|
||||||
|
0x00, 0x00,
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
// Code generated by protoc-gen-micro. DO NOT EDIT.
|
// Code generated by protoc-gen-micro. DO NOT EDIT.
|
||||||
// source: github.com/micro/go-micro/network/proto/network.proto
|
// source: network.proto
|
||||||
|
|
||||||
package go_micro_network
|
package go_micro_network
|
||||||
|
|
||||||
|
@ -100,3 +100,13 @@ message Peer {
|
|||||||
// node peers
|
// node peers
|
||||||
repeated Peer peers = 2;
|
repeated Peer peers = 2;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Sync is network sync message
|
||||||
|
message Sync {
|
||||||
|
// node address
|
||||||
|
string address = 1;
|
||||||
|
// node peers
|
||||||
|
repeated Peer peers = 2;
|
||||||
|
// node routes
|
||||||
|
repeated go.micro.router.Route routes = 3;
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user