738 lines
25 KiB
Go
738 lines
25 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// source: github.com/micro/go-micro/network/proto/network.proto
|
|
|
|
package go_micro_network
|
|
|
|
import (
|
|
fmt "fmt"
|
|
proto "github.com/golang/protobuf/proto"
|
|
proto1 "github.com/micro/go-micro/router/proto"
|
|
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
|
|
|
|
// Query is passed in a LookupRequest
|
|
type Query struct {
|
|
Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
|
|
Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
|
|
Gateway string `protobuf:"bytes,3,opt,name=gateway,proto3" json:"gateway,omitempty"`
|
|
Router string `protobuf:"bytes,4,opt,name=router,proto3" json:"router,omitempty"`
|
|
Network string `protobuf:"bytes,5,opt,name=network,proto3" json:"network,omitempty"`
|
|
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) {
|
|
return fileDescriptor_0b7953b26a7c4730, []int{0}
|
|
}
|
|
|
|
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
|
|
|
|
func (m *Query) GetService() string {
|
|
if m != nil {
|
|
return m.Service
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Query) GetAddress() string {
|
|
if m != nil {
|
|
return m.Address
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Query) GetGateway() string {
|
|
if m != nil {
|
|
return m.Gateway
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Query) GetRouter() string {
|
|
if m != nil {
|
|
return m.Router
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Query) GetNetwork() string {
|
|
if m != nil {
|
|
return m.Network
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type ConnectRequest struct {
|
|
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 *ConnectRequest) Reset() { *m = ConnectRequest{} }
|
|
func (m *ConnectRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*ConnectRequest) ProtoMessage() {}
|
|
func (*ConnectRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_0b7953b26a7c4730, []int{1}
|
|
}
|
|
|
|
func (m *ConnectRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_ConnectRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *ConnectRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_ConnectRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *ConnectRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ConnectRequest.Merge(m, src)
|
|
}
|
|
func (m *ConnectRequest) XXX_Size() int {
|
|
return xxx_messageInfo_ConnectRequest.Size(m)
|
|
}
|
|
func (m *ConnectRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ConnectRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ConnectRequest proto.InternalMessageInfo
|
|
|
|
func (m *ConnectRequest) GetNodes() []*Node {
|
|
if m != nil {
|
|
return m.Nodes
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ConnectResponse struct {
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ConnectResponse) Reset() { *m = ConnectResponse{} }
|
|
func (m *ConnectResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*ConnectResponse) ProtoMessage() {}
|
|
func (*ConnectResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_0b7953b26a7c4730, []int{2}
|
|
}
|
|
|
|
func (m *ConnectResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_ConnectResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *ConnectResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_ConnectResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *ConnectResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ConnectResponse.Merge(m, src)
|
|
}
|
|
func (m *ConnectResponse) XXX_Size() int {
|
|
return xxx_messageInfo_ConnectResponse.Size(m)
|
|
}
|
|
func (m *ConnectResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ConnectResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ConnectResponse proto.InternalMessageInfo
|
|
|
|
// PeerRequest requests list of peers
|
|
type NodesRequest struct {
|
|
// node topology depth
|
|
Depth uint32 `protobuf:"varint,1,opt,name=depth,proto3" json:"depth,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *NodesRequest) Reset() { *m = NodesRequest{} }
|
|
func (m *NodesRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*NodesRequest) ProtoMessage() {}
|
|
func (*NodesRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_0b7953b26a7c4730, []int{3}
|
|
}
|
|
|
|
func (m *NodesRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_NodesRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *NodesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_NodesRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *NodesRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_NodesRequest.Merge(m, src)
|
|
}
|
|
func (m *NodesRequest) XXX_Size() int {
|
|
return xxx_messageInfo_NodesRequest.Size(m)
|
|
}
|
|
func (m *NodesRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_NodesRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_NodesRequest proto.InternalMessageInfo
|
|
|
|
func (m *NodesRequest) GetDepth() uint32 {
|
|
if m != nil {
|
|
return m.Depth
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// PeerResponse is returned by ListPeers
|
|
type NodesResponse struct {
|
|
// return peer topology
|
|
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 *NodesResponse) Reset() { *m = NodesResponse{} }
|
|
func (m *NodesResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*NodesResponse) ProtoMessage() {}
|
|
func (*NodesResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_0b7953b26a7c4730, []int{4}
|
|
}
|
|
|
|
func (m *NodesResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_NodesResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *NodesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_NodesResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *NodesResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_NodesResponse.Merge(m, src)
|
|
}
|
|
func (m *NodesResponse) XXX_Size() int {
|
|
return xxx_messageInfo_NodesResponse.Size(m)
|
|
}
|
|
func (m *NodesResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_NodesResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_NodesResponse proto.InternalMessageInfo
|
|
|
|
func (m *NodesResponse) GetNodes() []*Node {
|
|
if m != nil {
|
|
return m.Nodes
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type GraphRequest struct {
|
|
// node topology depth
|
|
Depth uint32 `protobuf:"varint,1,opt,name=depth,proto3" json:"depth,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *GraphRequest) Reset() { *m = GraphRequest{} }
|
|
func (m *GraphRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*GraphRequest) ProtoMessage() {}
|
|
func (*GraphRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_0b7953b26a7c4730, []int{5}
|
|
}
|
|
|
|
func (m *GraphRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_GraphRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *GraphRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_GraphRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *GraphRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_GraphRequest.Merge(m, src)
|
|
}
|
|
func (m *GraphRequest) XXX_Size() int {
|
|
return xxx_messageInfo_GraphRequest.Size(m)
|
|
}
|
|
func (m *GraphRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_GraphRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_GraphRequest proto.InternalMessageInfo
|
|
|
|
func (m *GraphRequest) GetDepth() uint32 {
|
|
if m != nil {
|
|
return m.Depth
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type GraphResponse struct {
|
|
Root *Peer `protobuf:"bytes,1,opt,name=root,proto3" json:"root,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *GraphResponse) Reset() { *m = GraphResponse{} }
|
|
func (m *GraphResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*GraphResponse) ProtoMessage() {}
|
|
func (*GraphResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_0b7953b26a7c4730, []int{6}
|
|
}
|
|
|
|
func (m *GraphResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_GraphResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *GraphResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_GraphResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *GraphResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_GraphResponse.Merge(m, src)
|
|
}
|
|
func (m *GraphResponse) XXX_Size() int {
|
|
return xxx_messageInfo_GraphResponse.Size(m)
|
|
}
|
|
func (m *GraphResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_GraphResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_GraphResponse proto.InternalMessageInfo
|
|
|
|
func (m *GraphResponse) GetRoot() *Peer {
|
|
if m != nil {
|
|
return m.Root
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type RoutesRequest struct {
|
|
// filter based on
|
|
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 *RoutesRequest) Reset() { *m = RoutesRequest{} }
|
|
func (m *RoutesRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*RoutesRequest) ProtoMessage() {}
|
|
func (*RoutesRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_0b7953b26a7c4730, []int{7}
|
|
}
|
|
|
|
func (m *RoutesRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_RoutesRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *RoutesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_RoutesRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *RoutesRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_RoutesRequest.Merge(m, src)
|
|
}
|
|
func (m *RoutesRequest) XXX_Size() int {
|
|
return xxx_messageInfo_RoutesRequest.Size(m)
|
|
}
|
|
func (m *RoutesRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_RoutesRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_RoutesRequest proto.InternalMessageInfo
|
|
|
|
func (m *RoutesRequest) GetQuery() *Query {
|
|
if m != nil {
|
|
return m.Query
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type RoutesResponse struct {
|
|
Routes []*proto1.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 *RoutesResponse) Reset() { *m = RoutesResponse{} }
|
|
func (m *RoutesResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*RoutesResponse) ProtoMessage() {}
|
|
func (*RoutesResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_0b7953b26a7c4730, []int{8}
|
|
}
|
|
|
|
func (m *RoutesResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_RoutesResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *RoutesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_RoutesResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *RoutesResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_RoutesResponse.Merge(m, src)
|
|
}
|
|
func (m *RoutesResponse) XXX_Size() int {
|
|
return xxx_messageInfo_RoutesResponse.Size(m)
|
|
}
|
|
func (m *RoutesResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_RoutesResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_RoutesResponse proto.InternalMessageInfo
|
|
|
|
func (m *RoutesResponse) GetRoutes() []*proto1.Route {
|
|
if m != nil {
|
|
return m.Routes
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ServicesRequest struct {
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ServicesRequest) Reset() { *m = ServicesRequest{} }
|
|
func (m *ServicesRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*ServicesRequest) ProtoMessage() {}
|
|
func (*ServicesRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_0b7953b26a7c4730, []int{9}
|
|
}
|
|
|
|
func (m *ServicesRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_ServicesRequest.Unmarshal(m, b)
|
|
}
|
|
func (m *ServicesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_ServicesRequest.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *ServicesRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ServicesRequest.Merge(m, src)
|
|
}
|
|
func (m *ServicesRequest) XXX_Size() int {
|
|
return xxx_messageInfo_ServicesRequest.Size(m)
|
|
}
|
|
func (m *ServicesRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ServicesRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ServicesRequest proto.InternalMessageInfo
|
|
|
|
type ServicesResponse struct {
|
|
Services []string `protobuf:"bytes,1,rep,name=services,proto3" json:"services,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ServicesResponse) Reset() { *m = ServicesResponse{} }
|
|
func (m *ServicesResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*ServicesResponse) ProtoMessage() {}
|
|
func (*ServicesResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_0b7953b26a7c4730, []int{10}
|
|
}
|
|
|
|
func (m *ServicesResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_ServicesResponse.Unmarshal(m, b)
|
|
}
|
|
func (m *ServicesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_ServicesResponse.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *ServicesResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ServicesResponse.Merge(m, src)
|
|
}
|
|
func (m *ServicesResponse) XXX_Size() int {
|
|
return xxx_messageInfo_ServicesResponse.Size(m)
|
|
}
|
|
func (m *ServicesResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ServicesResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ServicesResponse proto.InternalMessageInfo
|
|
|
|
func (m *ServicesResponse) GetServices() []string {
|
|
if m != nil {
|
|
return m.Services
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// Node is network node
|
|
type Node struct {
|
|
// node id
|
|
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"`
|
|
// the network
|
|
Network string `protobuf:"bytes,3,opt,name=network,proto3" json:"network,omitempty"`
|
|
// associated metadata
|
|
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"`
|
|
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) {
|
|
return fileDescriptor_0b7953b26a7c4730, []int{11}
|
|
}
|
|
|
|
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 ""
|
|
}
|
|
|
|
func (m *Node) GetNetwork() string {
|
|
if m != nil {
|
|
return m.Network
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Node) GetMetadata() map[string]string {
|
|
if m != nil {
|
|
return m.Metadata
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// 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) {
|
|
return fileDescriptor_0b7953b26a7c4730, []int{12}
|
|
}
|
|
|
|
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 {
|
|
// 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 *Close) Reset() { *m = Close{} }
|
|
func (m *Close) String() string { return proto.CompactTextString(m) }
|
|
func (*Close) ProtoMessage() {}
|
|
func (*Close) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_0b7953b26a7c4730, []int{13}
|
|
}
|
|
|
|
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
|
|
}
|
|
|
|
// Peer is used to advertise node peers
|
|
type Peer struct {
|
|
// network node
|
|
Node *Node `protobuf:"bytes,1,opt,name=node,proto3" json:"node,omitempty"`
|
|
// node peers
|
|
Peers []*Peer `protobuf:"bytes,2,rep,name=peers,proto3" json:"peers,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *Peer) Reset() { *m = Peer{} }
|
|
func (m *Peer) String() string { return proto.CompactTextString(m) }
|
|
func (*Peer) ProtoMessage() {}
|
|
func (*Peer) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_0b7953b26a7c4730, []int{14}
|
|
}
|
|
|
|
func (m *Peer) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_Peer.Unmarshal(m, b)
|
|
}
|
|
func (m *Peer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_Peer.Marshal(b, m, deterministic)
|
|
}
|
|
func (m *Peer) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Peer.Merge(m, src)
|
|
}
|
|
func (m *Peer) XXX_Size() int {
|
|
return xxx_messageInfo_Peer.Size(m)
|
|
}
|
|
func (m *Peer) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Peer.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Peer proto.InternalMessageInfo
|
|
|
|
func (m *Peer) GetNode() *Node {
|
|
if m != nil {
|
|
return m.Node
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *Peer) GetPeers() []*Peer {
|
|
if m != nil {
|
|
return m.Peers
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterType((*Query)(nil), "go.micro.network.Query")
|
|
proto.RegisterType((*ConnectRequest)(nil), "go.micro.network.ConnectRequest")
|
|
proto.RegisterType((*ConnectResponse)(nil), "go.micro.network.ConnectResponse")
|
|
proto.RegisterType((*NodesRequest)(nil), "go.micro.network.NodesRequest")
|
|
proto.RegisterType((*NodesResponse)(nil), "go.micro.network.NodesResponse")
|
|
proto.RegisterType((*GraphRequest)(nil), "go.micro.network.GraphRequest")
|
|
proto.RegisterType((*GraphResponse)(nil), "go.micro.network.GraphResponse")
|
|
proto.RegisterType((*RoutesRequest)(nil), "go.micro.network.RoutesRequest")
|
|
proto.RegisterType((*RoutesResponse)(nil), "go.micro.network.RoutesResponse")
|
|
proto.RegisterType((*ServicesRequest)(nil), "go.micro.network.ServicesRequest")
|
|
proto.RegisterType((*ServicesResponse)(nil), "go.micro.network.ServicesResponse")
|
|
proto.RegisterType((*Node)(nil), "go.micro.network.Node")
|
|
proto.RegisterMapType((map[string]string)(nil), "go.micro.network.Node.MetadataEntry")
|
|
proto.RegisterType((*Connect)(nil), "go.micro.network.Connect")
|
|
proto.RegisterType((*Close)(nil), "go.micro.network.Close")
|
|
proto.RegisterType((*Peer)(nil), "go.micro.network.Peer")
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterFile("github.com/micro/go-micro/network/proto/network.proto", fileDescriptor_0b7953b26a7c4730)
|
|
}
|
|
|
|
var fileDescriptor_0b7953b26a7c4730 = []byte{
|
|
// 573 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0x61, 0x6a, 0xdb, 0x4c,
|
|
0x10, 0x8d, 0x2c, 0xcb, 0x76, 0xe6, 0x8b, 0xfd, 0xb9, 0x4b, 0x49, 0x85, 0x7e, 0xb4, 0xee, 0xe2,
|
|
0x1f, 0xa1, 0x34, 0x32, 0xc4, 0x04, 0x4a, 0x43, 0x43, 0x20, 0x94, 0x42, 0x21, 0x21, 0x55, 0x2e,
|
|
0x50, 0xc5, 0x1a, 0x6c, 0x93, 0x58, 0xeb, 0xac, 0xd6, 0x09, 0x3e, 0x41, 0x8f, 0xd0, 0x33, 0xf5,
|
|
0x56, 0x65, 0x77, 0x47, 0x8a, 0x1d, 0xcb, 0xa2, 0xf9, 0xe7, 0xd1, 0xbc, 0xf7, 0x66, 0x67, 0xe6,
|
|
0x8d, 0xe1, 0x78, 0x3c, 0x55, 0x93, 0xc5, 0x4d, 0x38, 0x12, 0xb3, 0xc1, 0x6c, 0x3a, 0x92, 0x62,
|
|
0x30, 0x16, 0x87, 0xf6, 0x47, 0x8a, 0xea, 0x51, 0xc8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