|
@@ -0,0 +1,1025 @@
|
|
|
|
+// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
|
|
+// source: grpc/node.proto
|
|
|
|
+
|
|
|
|
+package nodepb
|
|
|
|
+
|
|
|
|
+import (
|
|
|
|
+ fmt "fmt"
|
|
|
|
+ proto "github.com/golang/protobuf/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
|
|
|
|
+
|
|
|
|
+type LoginRequest struct {
|
|
|
|
+ Macaddress string `protobuf:"bytes,1,opt,name=macaddress,proto3" json:"macaddress,omitempty"`
|
|
|
|
+ Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
|
|
|
|
+ XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
+ XXX_unrecognized []byte `json:"-"`
|
|
|
|
+ XXX_sizecache int32 `json:"-"`
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (m *LoginRequest) Reset() { *m = LoginRequest{} }
|
|
|
|
+func (m *LoginRequest) String() string { return proto.CompactTextString(m) }
|
|
|
|
+func (*LoginRequest) ProtoMessage() {}
|
|
|
|
+func (*LoginRequest) Descriptor() ([]byte, []int) {
|
|
|
|
+ return fileDescriptor_d13bd996b67da4ef, []int{0}
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (m *LoginRequest) XXX_Unmarshal(b []byte) error {
|
|
|
|
+ return xxx_messageInfo_LoginRequest.Unmarshal(m, b)
|
|
|
|
+}
|
|
|
|
+func (m *LoginRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
+ return xxx_messageInfo_LoginRequest.Marshal(b, m, deterministic)
|
|
|
|
+}
|
|
|
|
+func (m *LoginRequest) XXX_Merge(src proto.Message) {
|
|
|
|
+ xxx_messageInfo_LoginRequest.Merge(m, src)
|
|
|
|
+}
|
|
|
|
+func (m *LoginRequest) XXX_Size() int {
|
|
|
|
+ return xxx_messageInfo_LoginRequest.Size(m)
|
|
|
|
+}
|
|
|
|
+func (m *LoginRequest) XXX_DiscardUnknown() {
|
|
|
|
+ xxx_messageInfo_LoginRequest.DiscardUnknown(m)
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+var xxx_messageInfo_LoginRequest proto.InternalMessageInfo
|
|
|
|
+
|
|
|
|
+func (m *LoginRequest) GetMacaddress() string {
|
|
|
|
+ if m != nil {
|
|
|
|
+ return m.Macaddress
|
|
|
|
+ }
|
|
|
|
+ return ""
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (m *LoginRequest) GetPassword() string {
|
|
|
|
+ if m != nil {
|
|
|
|
+ return m.Password
|
|
|
|
+ }
|
|
|
|
+ return ""
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+type LoginResponse struct {
|
|
|
|
+ Accesstoken string `protobuf:"bytes,1,opt,name=accesstoken,proto3" json:"accesstoken,omitempty"`
|
|
|
|
+ XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
+ XXX_unrecognized []byte `json:"-"`
|
|
|
|
+ XXX_sizecache int32 `json:"-"`
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (m *LoginResponse) Reset() { *m = LoginResponse{} }
|
|
|
|
+func (m *LoginResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
+func (*LoginResponse) ProtoMessage() {}
|
|
|
|
+func (*LoginResponse) Descriptor() ([]byte, []int) {
|
|
|
|
+ return fileDescriptor_d13bd996b67da4ef, []int{1}
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (m *LoginResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
+ return xxx_messageInfo_LoginResponse.Unmarshal(m, b)
|
|
|
|
+}
|
|
|
|
+func (m *LoginResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
+ return xxx_messageInfo_LoginResponse.Marshal(b, m, deterministic)
|
|
|
|
+}
|
|
|
|
+func (m *LoginResponse) XXX_Merge(src proto.Message) {
|
|
|
|
+ xxx_messageInfo_LoginResponse.Merge(m, src)
|
|
|
|
+}
|
|
|
|
+func (m *LoginResponse) XXX_Size() int {
|
|
|
|
+ return xxx_messageInfo_LoginResponse.Size(m)
|
|
|
|
+}
|
|
|
|
+func (m *LoginResponse) XXX_DiscardUnknown() {
|
|
|
|
+ xxx_messageInfo_LoginResponse.DiscardUnknown(m)
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+var xxx_messageInfo_LoginResponse proto.InternalMessageInfo
|
|
|
|
+
|
|
|
|
+func (m *LoginResponse) GetAccesstoken() string {
|
|
|
|
+ if m != nil {
|
|
|
|
+ return m.Accesstoken
|
|
|
|
+ }
|
|
|
|
+ return ""
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+type Node struct {
|
|
|
|
+ Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
|
|
|
|
+ Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
|
|
|
+ Address string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"`
|
|
|
|
+ Listenport int32 `protobuf:"varint,4,opt,name=listenport,proto3" json:"listenport,omitempty"`
|
|
|
|
+ Publickey string `protobuf:"bytes,5,opt,name=publickey,proto3" json:"publickey,omitempty"`
|
|
|
|
+ Endpoint string `protobuf:"bytes,6,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
|
|
|
|
+ Macaddress string `protobuf:"bytes,7,opt,name=macaddress,proto3" json:"macaddress,omitempty"`
|
|
|
|
+ Password string `protobuf:"bytes,8,opt,name=password,proto3" json:"password,omitempty"`
|
|
|
|
+ Nodegroup string `protobuf:"bytes,9,opt,name=nodegroup,proto3" json:"nodegroup,omitempty"`
|
|
|
|
+ Ispending bool `protobuf:"varint,10,opt,name=ispending,proto3" json:"ispending,omitempty"`
|
|
|
|
+ Postup string `protobuf:"bytes,11,opt,name=postup,proto3" json:"postup,omitempty"`
|
|
|
|
+ Preup string `protobuf:"bytes,12,opt,name=preup,proto3" json:"preup,omitempty"`
|
|
|
|
+ Keepalive int32 `protobuf:"varint,13,opt,name=keepalive,proto3" json:"keepalive,omitempty"`
|
|
|
|
+ Saveconfig bool `protobuf:"varint,14,opt,name=saveconfig,proto3" json:"saveconfig,omitempty"`
|
|
|
|
+ Accesskey string `protobuf:"bytes,15,opt,name=accesskey,proto3" json:"accesskey,omitempty"`
|
|
|
|
+ Interface string `protobuf:"bytes,16,opt,name=interface,proto3" json:"interface,omitempty"`
|
|
|
|
+ Lastcheckin string `protobuf:"bytes,17,opt,name=lastcheckin,proto3" json:"lastcheckin,omitempty"`
|
|
|
|
+ Lastmodified string `protobuf:"bytes,18,opt,name=lastmodified,proto3" json:"lastmodified,omitempty"`
|
|
|
|
+ Checkininterval int32 `protobuf:"varint,19,opt,name=checkininterval,proto3" json:"checkininterval,omitempty"`
|
|
|
|
+ Localaddress string `protobuf:"bytes,20,opt,name=localaddress,proto3" json:"localaddress,omitempty"`
|
|
|
|
+ Postchanges string `protobuf:"bytes,21,opt,name=postchanges,proto3" json:"postchanges,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) {
|
|
|
|
+ return fileDescriptor_d13bd996b67da4ef, []int{2}
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+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) GetName() string {
|
|
|
|
+ if m != nil {
|
|
|
|
+ return m.Name
|
|
|
|
+ }
|
|
|
|
+ return ""
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (m *Node) GetAddress() string {
|
|
|
|
+ if m != nil {
|
|
|
|
+ return m.Address
|
|
|
|
+ }
|
|
|
|
+ return ""
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (m *Node) GetListenport() int32 {
|
|
|
|
+ if m != nil {
|
|
|
|
+ return m.Listenport
|
|
|
|
+ }
|
|
|
|
+ return 0
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (m *Node) GetPublickey() string {
|
|
|
|
+ if m != nil {
|
|
|
|
+ return m.Publickey
|
|
|
|
+ }
|
|
|
|
+ return ""
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (m *Node) GetEndpoint() string {
|
|
|
|
+ if m != nil {
|
|
|
|
+ return m.Endpoint
|
|
|
|
+ }
|
|
|
|
+ return ""
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (m *Node) GetMacaddress() string {
|
|
|
|
+ if m != nil {
|
|
|
|
+ return m.Macaddress
|
|
|
|
+ }
|
|
|
|
+ return ""
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (m *Node) GetPassword() string {
|
|
|
|
+ if m != nil {
|
|
|
|
+ return m.Password
|
|
|
|
+ }
|
|
|
|
+ return ""
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (m *Node) GetNodegroup() string {
|
|
|
|
+ if m != nil {
|
|
|
|
+ return m.Nodegroup
|
|
|
|
+ }
|
|
|
|
+ return ""
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (m *Node) GetIspending() bool {
|
|
|
|
+ if m != nil {
|
|
|
|
+ return m.Ispending
|
|
|
|
+ }
|
|
|
|
+ return false
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (m *Node) GetPostup() string {
|
|
|
|
+ if m != nil {
|
|
|
|
+ return m.Postup
|
|
|
|
+ }
|
|
|
|
+ return ""
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (m *Node) GetPreup() string {
|
|
|
|
+ if m != nil {
|
|
|
|
+ return m.Preup
|
|
|
|
+ }
|
|
|
|
+ return ""
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (m *Node) GetKeepalive() int32 {
|
|
|
|
+ if m != nil {
|
|
|
|
+ return m.Keepalive
|
|
|
|
+ }
|
|
|
|
+ return 0
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (m *Node) GetSaveconfig() bool {
|
|
|
|
+ if m != nil {
|
|
|
|
+ return m.Saveconfig
|
|
|
|
+ }
|
|
|
|
+ return false
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (m *Node) GetAccesskey() string {
|
|
|
|
+ if m != nil {
|
|
|
|
+ return m.Accesskey
|
|
|
|
+ }
|
|
|
|
+ return ""
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (m *Node) GetInterface() string {
|
|
|
|
+ if m != nil {
|
|
|
|
+ return m.Interface
|
|
|
|
+ }
|
|
|
|
+ return ""
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (m *Node) GetLastcheckin() string {
|
|
|
|
+ if m != nil {
|
|
|
|
+ return m.Lastcheckin
|
|
|
|
+ }
|
|
|
|
+ return ""
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (m *Node) GetLastmodified() string {
|
|
|
|
+ if m != nil {
|
|
|
|
+ return m.Lastmodified
|
|
|
|
+ }
|
|
|
|
+ return ""
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (m *Node) GetCheckininterval() int32 {
|
|
|
|
+ if m != nil {
|
|
|
|
+ return m.Checkininterval
|
|
|
|
+ }
|
|
|
|
+ return 0
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (m *Node) GetLocaladdress() string {
|
|
|
|
+ if m != nil {
|
|
|
|
+ return m.Localaddress
|
|
|
|
+ }
|
|
|
|
+ return ""
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (m *Node) GetPostchanges() string {
|
|
|
|
+ if m != nil {
|
|
|
|
+ return m.Postchanges
|
|
|
|
+ }
|
|
|
|
+ return ""
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+type CheckInResponse struct {
|
|
|
|
+ Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
|
|
|
|
+ Needpeerupdate bool `protobuf:"varint,2,opt,name=needpeerupdate,proto3" json:"needpeerupdate,omitempty"`
|
|
|
|
+ Needconfigupdate bool `protobuf:"varint,3,opt,name=needconfigupdate,proto3" json:"needconfigupdate,omitempty"`
|
|
|
|
+ Nodemessage string `protobuf:"bytes,4,opt,name=nodemessage,proto3" json:"nodemessage,omitempty"`
|
|
|
|
+ Ispending bool `protobuf:"varint,5,opt,name=ispending,proto3" json:"ispending,omitempty"`
|
|
|
|
+ XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
+ XXX_unrecognized []byte `json:"-"`
|
|
|
|
+ XXX_sizecache int32 `json:"-"`
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (m *CheckInResponse) Reset() { *m = CheckInResponse{} }
|
|
|
|
+func (m *CheckInResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
+func (*CheckInResponse) ProtoMessage() {}
|
|
|
|
+func (*CheckInResponse) Descriptor() ([]byte, []int) {
|
|
|
|
+ return fileDescriptor_d13bd996b67da4ef, []int{3}
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (m *CheckInResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
+ return xxx_messageInfo_CheckInResponse.Unmarshal(m, b)
|
|
|
|
+}
|
|
|
|
+func (m *CheckInResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
+ return xxx_messageInfo_CheckInResponse.Marshal(b, m, deterministic)
|
|
|
|
+}
|
|
|
|
+func (m *CheckInResponse) XXX_Merge(src proto.Message) {
|
|
|
|
+ xxx_messageInfo_CheckInResponse.Merge(m, src)
|
|
|
|
+}
|
|
|
|
+func (m *CheckInResponse) XXX_Size() int {
|
|
|
|
+ return xxx_messageInfo_CheckInResponse.Size(m)
|
|
|
|
+}
|
|
|
|
+func (m *CheckInResponse) XXX_DiscardUnknown() {
|
|
|
|
+ xxx_messageInfo_CheckInResponse.DiscardUnknown(m)
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+var xxx_messageInfo_CheckInResponse proto.InternalMessageInfo
|
|
|
|
+
|
|
|
|
+func (m *CheckInResponse) GetSuccess() bool {
|
|
|
|
+ if m != nil {
|
|
|
|
+ return m.Success
|
|
|
|
+ }
|
|
|
|
+ return false
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (m *CheckInResponse) GetNeedpeerupdate() bool {
|
|
|
|
+ if m != nil {
|
|
|
|
+ return m.Needpeerupdate
|
|
|
|
+ }
|
|
|
|
+ return false
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (m *CheckInResponse) GetNeedconfigupdate() bool {
|
|
|
|
+ if m != nil {
|
|
|
|
+ return m.Needconfigupdate
|
|
|
|
+ }
|
|
|
|
+ return false
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (m *CheckInResponse) GetNodemessage() string {
|
|
|
|
+ if m != nil {
|
|
|
|
+ return m.Nodemessage
|
|
|
|
+ }
|
|
|
|
+ return ""
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (m *CheckInResponse) GetIspending() bool {
|
|
|
|
+ if m != nil {
|
|
|
|
+ return m.Ispending
|
|
|
|
+ }
|
|
|
|
+ return false
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+type PeersResponse struct {
|
|
|
|
+ Publickey string `protobuf:"bytes,5,opt,name=publickey,proto3" json:"publickey,omitempty"`
|
|
|
|
+ Endpoint string `protobuf:"bytes,6,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
|
|
|
|
+ Address string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"`
|
|
|
|
+ Listenport int32 `protobuf:"varint,4,opt,name=listenport,proto3" json:"listenport,omitempty"`
|
|
|
|
+ Localaddress string `protobuf:"bytes,7,opt,name=localaddress,proto3" json:"localaddress,omitempty"`
|
|
|
|
+ Keepalive int32 `protobuf:"varint,13,opt,name=keepalive,proto3" json:"keepalive,omitempty"`
|
|
|
|
+ XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
+ XXX_unrecognized []byte `json:"-"`
|
|
|
|
+ XXX_sizecache int32 `json:"-"`
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (m *PeersResponse) Reset() { *m = PeersResponse{} }
|
|
|
|
+func (m *PeersResponse) String() string { return proto.CompactTextString(m) }
|
|
|
|
+func (*PeersResponse) ProtoMessage() {}
|
|
|
|
+func (*PeersResponse) Descriptor() ([]byte, []int) {
|
|
|
|
+ return fileDescriptor_d13bd996b67da4ef, []int{4}
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (m *PeersResponse) XXX_Unmarshal(b []byte) error {
|
|
|
|
+ return xxx_messageInfo_PeersResponse.Unmarshal(m, b)
|
|
|
|
+}
|
|
|
|
+func (m *PeersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
+ return xxx_messageInfo_PeersResponse.Marshal(b, m, deterministic)
|
|
|
|
+}
|
|
|
|
+func (m *PeersResponse) XXX_Merge(src proto.Message) {
|
|
|
|
+ xxx_messageInfo_PeersResponse.Merge(m, src)
|
|
|
|
+}
|
|
|
|
+func (m *PeersResponse) XXX_Size() int {
|
|
|
|
+ return xxx_messageInfo_PeersResponse.Size(m)
|
|
|
|
+}
|
|
|
|
+func (m *PeersResponse) XXX_DiscardUnknown() {
|
|
|
|
+ xxx_messageInfo_PeersResponse.DiscardUnknown(m)
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+var xxx_messageInfo_PeersResponse proto.InternalMessageInfo
|
|
|
|
+
|
|
|
|
+func (m *PeersResponse) GetPublickey() string {
|
|
|
|
+ if m != nil {
|
|
|
|
+ return m.Publickey
|
|
|
|
+ }
|
|
|
|
+ return ""
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (m *PeersResponse) GetEndpoint() string {
|
|
|
|
+ if m != nil {
|
|
|
|
+ return m.Endpoint
|
|
|
|
+ }
|
|
|
|
+ return ""
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (m *PeersResponse) GetAddress() string {
|
|
|
|
+ if m != nil {
|
|
|
|
+ return m.Address
|
|
|
|
+ }
|
|
|
|
+ return ""
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (m *PeersResponse) GetListenport() int32 {
|
|
|
|
+ if m != nil {
|
|
|
|
+ return m.Listenport
|
|
|
|
+ }
|
|
|
|
+ return 0
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (m *PeersResponse) GetLocaladdress() string {
|
|
|
|
+ if m != nil {
|
|
|
|
+ return m.Localaddress
|
|
|
|
+ }
|
|
|
|
+ return ""
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (m *PeersResponse) GetKeepalive() int32 {
|
|
|
|
+ if m != nil {
|
|
|
|
+ return m.Keepalive
|
|
|
|
+ }
|
|
|
|
+ return 0
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+type CreateNodeReq struct {
|
|
|
|
+ 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 *CreateNodeReq) Reset() { *m = CreateNodeReq{} }
|
|
|
|
+func (m *CreateNodeReq) String() string { return proto.CompactTextString(m) }
|
|
|
|
+func (*CreateNodeReq) ProtoMessage() {}
|
|
|
|
+func (*CreateNodeReq) Descriptor() ([]byte, []int) {
|
|
|
|
+ return fileDescriptor_d13bd996b67da4ef, []int{5}
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (m *CreateNodeReq) XXX_Unmarshal(b []byte) error {
|
|
|
|
+ return xxx_messageInfo_CreateNodeReq.Unmarshal(m, b)
|
|
|
|
+}
|
|
|
|
+func (m *CreateNodeReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
+ return xxx_messageInfo_CreateNodeReq.Marshal(b, m, deterministic)
|
|
|
|
+}
|
|
|
|
+func (m *CreateNodeReq) XXX_Merge(src proto.Message) {
|
|
|
|
+ xxx_messageInfo_CreateNodeReq.Merge(m, src)
|
|
|
|
+}
|
|
|
|
+func (m *CreateNodeReq) XXX_Size() int {
|
|
|
|
+ return xxx_messageInfo_CreateNodeReq.Size(m)
|
|
|
|
+}
|
|
|
|
+func (m *CreateNodeReq) XXX_DiscardUnknown() {
|
|
|
|
+ xxx_messageInfo_CreateNodeReq.DiscardUnknown(m)
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+var xxx_messageInfo_CreateNodeReq proto.InternalMessageInfo
|
|
|
|
+
|
|
|
|
+func (m *CreateNodeReq) GetNode() *Node {
|
|
|
|
+ if m != nil {
|
|
|
|
+ return m.Node
|
|
|
|
+ }
|
|
|
|
+ return nil
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+type CreateNodeRes struct {
|
|
|
|
+ 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 *CreateNodeRes) Reset() { *m = CreateNodeRes{} }
|
|
|
|
+func (m *CreateNodeRes) String() string { return proto.CompactTextString(m) }
|
|
|
|
+func (*CreateNodeRes) ProtoMessage() {}
|
|
|
|
+func (*CreateNodeRes) Descriptor() ([]byte, []int) {
|
|
|
|
+ return fileDescriptor_d13bd996b67da4ef, []int{6}
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (m *CreateNodeRes) XXX_Unmarshal(b []byte) error {
|
|
|
|
+ return xxx_messageInfo_CreateNodeRes.Unmarshal(m, b)
|
|
|
|
+}
|
|
|
|
+func (m *CreateNodeRes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
+ return xxx_messageInfo_CreateNodeRes.Marshal(b, m, deterministic)
|
|
|
|
+}
|
|
|
|
+func (m *CreateNodeRes) XXX_Merge(src proto.Message) {
|
|
|
|
+ xxx_messageInfo_CreateNodeRes.Merge(m, src)
|
|
|
|
+}
|
|
|
|
+func (m *CreateNodeRes) XXX_Size() int {
|
|
|
|
+ return xxx_messageInfo_CreateNodeRes.Size(m)
|
|
|
|
+}
|
|
|
|
+func (m *CreateNodeRes) XXX_DiscardUnknown() {
|
|
|
|
+ xxx_messageInfo_CreateNodeRes.DiscardUnknown(m)
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+var xxx_messageInfo_CreateNodeRes proto.InternalMessageInfo
|
|
|
|
+
|
|
|
|
+func (m *CreateNodeRes) GetNode() *Node {
|
|
|
|
+ if m != nil {
|
|
|
|
+ return m.Node
|
|
|
|
+ }
|
|
|
|
+ return nil
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+type UpdateNodeReq struct {
|
|
|
|
+ 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 *UpdateNodeReq) Reset() { *m = UpdateNodeReq{} }
|
|
|
|
+func (m *UpdateNodeReq) String() string { return proto.CompactTextString(m) }
|
|
|
|
+func (*UpdateNodeReq) ProtoMessage() {}
|
|
|
|
+func (*UpdateNodeReq) Descriptor() ([]byte, []int) {
|
|
|
|
+ return fileDescriptor_d13bd996b67da4ef, []int{7}
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (m *UpdateNodeReq) XXX_Unmarshal(b []byte) error {
|
|
|
|
+ return xxx_messageInfo_UpdateNodeReq.Unmarshal(m, b)
|
|
|
|
+}
|
|
|
|
+func (m *UpdateNodeReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
+ return xxx_messageInfo_UpdateNodeReq.Marshal(b, m, deterministic)
|
|
|
|
+}
|
|
|
|
+func (m *UpdateNodeReq) XXX_Merge(src proto.Message) {
|
|
|
|
+ xxx_messageInfo_UpdateNodeReq.Merge(m, src)
|
|
|
|
+}
|
|
|
|
+func (m *UpdateNodeReq) XXX_Size() int {
|
|
|
|
+ return xxx_messageInfo_UpdateNodeReq.Size(m)
|
|
|
|
+}
|
|
|
|
+func (m *UpdateNodeReq) XXX_DiscardUnknown() {
|
|
|
|
+ xxx_messageInfo_UpdateNodeReq.DiscardUnknown(m)
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+var xxx_messageInfo_UpdateNodeReq proto.InternalMessageInfo
|
|
|
|
+
|
|
|
|
+func (m *UpdateNodeReq) GetNode() *Node {
|
|
|
|
+ if m != nil {
|
|
|
|
+ return m.Node
|
|
|
|
+ }
|
|
|
|
+ return nil
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+type UpdateNodeRes struct {
|
|
|
|
+ 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 *UpdateNodeRes) Reset() { *m = UpdateNodeRes{} }
|
|
|
|
+func (m *UpdateNodeRes) String() string { return proto.CompactTextString(m) }
|
|
|
|
+func (*UpdateNodeRes) ProtoMessage() {}
|
|
|
|
+func (*UpdateNodeRes) Descriptor() ([]byte, []int) {
|
|
|
|
+ return fileDescriptor_d13bd996b67da4ef, []int{8}
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (m *UpdateNodeRes) XXX_Unmarshal(b []byte) error {
|
|
|
|
+ return xxx_messageInfo_UpdateNodeRes.Unmarshal(m, b)
|
|
|
|
+}
|
|
|
|
+func (m *UpdateNodeRes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
+ return xxx_messageInfo_UpdateNodeRes.Marshal(b, m, deterministic)
|
|
|
|
+}
|
|
|
|
+func (m *UpdateNodeRes) XXX_Merge(src proto.Message) {
|
|
|
|
+ xxx_messageInfo_UpdateNodeRes.Merge(m, src)
|
|
|
|
+}
|
|
|
|
+func (m *UpdateNodeRes) XXX_Size() int {
|
|
|
|
+ return xxx_messageInfo_UpdateNodeRes.Size(m)
|
|
|
|
+}
|
|
|
|
+func (m *UpdateNodeRes) XXX_DiscardUnknown() {
|
|
|
|
+ xxx_messageInfo_UpdateNodeRes.DiscardUnknown(m)
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+var xxx_messageInfo_UpdateNodeRes proto.InternalMessageInfo
|
|
|
|
+
|
|
|
|
+func (m *UpdateNodeRes) GetNode() *Node {
|
|
|
|
+ if m != nil {
|
|
|
|
+ return m.Node
|
|
|
|
+ }
|
|
|
|
+ return nil
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+type ReadNodeReq struct {
|
|
|
|
+ Macaddress string `protobuf:"bytes,1,opt,name=macaddress,proto3" json:"macaddress,omitempty"`
|
|
|
|
+ Group string `protobuf:"bytes,2,opt,name=group,proto3" json:"group,omitempty"`
|
|
|
|
+ XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
+ XXX_unrecognized []byte `json:"-"`
|
|
|
|
+ XXX_sizecache int32 `json:"-"`
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (m *ReadNodeReq) Reset() { *m = ReadNodeReq{} }
|
|
|
|
+func (m *ReadNodeReq) String() string { return proto.CompactTextString(m) }
|
|
|
|
+func (*ReadNodeReq) ProtoMessage() {}
|
|
|
|
+func (*ReadNodeReq) Descriptor() ([]byte, []int) {
|
|
|
|
+ return fileDescriptor_d13bd996b67da4ef, []int{9}
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (m *ReadNodeReq) XXX_Unmarshal(b []byte) error {
|
|
|
|
+ return xxx_messageInfo_ReadNodeReq.Unmarshal(m, b)
|
|
|
|
+}
|
|
|
|
+func (m *ReadNodeReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
+ return xxx_messageInfo_ReadNodeReq.Marshal(b, m, deterministic)
|
|
|
|
+}
|
|
|
|
+func (m *ReadNodeReq) XXX_Merge(src proto.Message) {
|
|
|
|
+ xxx_messageInfo_ReadNodeReq.Merge(m, src)
|
|
|
|
+}
|
|
|
|
+func (m *ReadNodeReq) XXX_Size() int {
|
|
|
|
+ return xxx_messageInfo_ReadNodeReq.Size(m)
|
|
|
|
+}
|
|
|
|
+func (m *ReadNodeReq) XXX_DiscardUnknown() {
|
|
|
|
+ xxx_messageInfo_ReadNodeReq.DiscardUnknown(m)
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+var xxx_messageInfo_ReadNodeReq proto.InternalMessageInfo
|
|
|
|
+
|
|
|
|
+func (m *ReadNodeReq) GetMacaddress() string {
|
|
|
|
+ if m != nil {
|
|
|
|
+ return m.Macaddress
|
|
|
|
+ }
|
|
|
|
+ return ""
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (m *ReadNodeReq) GetGroup() string {
|
|
|
|
+ if m != nil {
|
|
|
|
+ return m.Group
|
|
|
|
+ }
|
|
|
|
+ return ""
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+type ReadNodeRes struct {
|
|
|
|
+ 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 *ReadNodeRes) Reset() { *m = ReadNodeRes{} }
|
|
|
|
+func (m *ReadNodeRes) String() string { return proto.CompactTextString(m) }
|
|
|
|
+func (*ReadNodeRes) ProtoMessage() {}
|
|
|
|
+func (*ReadNodeRes) Descriptor() ([]byte, []int) {
|
|
|
|
+ return fileDescriptor_d13bd996b67da4ef, []int{10}
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (m *ReadNodeRes) XXX_Unmarshal(b []byte) error {
|
|
|
|
+ return xxx_messageInfo_ReadNodeRes.Unmarshal(m, b)
|
|
|
|
+}
|
|
|
|
+func (m *ReadNodeRes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
+ return xxx_messageInfo_ReadNodeRes.Marshal(b, m, deterministic)
|
|
|
|
+}
|
|
|
|
+func (m *ReadNodeRes) XXX_Merge(src proto.Message) {
|
|
|
|
+ xxx_messageInfo_ReadNodeRes.Merge(m, src)
|
|
|
|
+}
|
|
|
|
+func (m *ReadNodeRes) XXX_Size() int {
|
|
|
|
+ return xxx_messageInfo_ReadNodeRes.Size(m)
|
|
|
|
+}
|
|
|
|
+func (m *ReadNodeRes) XXX_DiscardUnknown() {
|
|
|
|
+ xxx_messageInfo_ReadNodeRes.DiscardUnknown(m)
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+var xxx_messageInfo_ReadNodeRes proto.InternalMessageInfo
|
|
|
|
+
|
|
|
|
+func (m *ReadNodeRes) GetNode() *Node {
|
|
|
|
+ if m != nil {
|
|
|
|
+ return m.Node
|
|
|
|
+ }
|
|
|
|
+ return nil
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+type DeleteNodeReq struct {
|
|
|
|
+ Macaddress string `protobuf:"bytes,1,opt,name=macaddress,proto3" json:"macaddress,omitempty"`
|
|
|
|
+ GroupName string `protobuf:"bytes,2,opt,name=groupName,proto3" json:"groupName,omitempty"`
|
|
|
|
+ XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
+ XXX_unrecognized []byte `json:"-"`
|
|
|
|
+ XXX_sizecache int32 `json:"-"`
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (m *DeleteNodeReq) Reset() { *m = DeleteNodeReq{} }
|
|
|
|
+func (m *DeleteNodeReq) String() string { return proto.CompactTextString(m) }
|
|
|
|
+func (*DeleteNodeReq) ProtoMessage() {}
|
|
|
|
+func (*DeleteNodeReq) Descriptor() ([]byte, []int) {
|
|
|
|
+ return fileDescriptor_d13bd996b67da4ef, []int{11}
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (m *DeleteNodeReq) XXX_Unmarshal(b []byte) error {
|
|
|
|
+ return xxx_messageInfo_DeleteNodeReq.Unmarshal(m, b)
|
|
|
|
+}
|
|
|
|
+func (m *DeleteNodeReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
+ return xxx_messageInfo_DeleteNodeReq.Marshal(b, m, deterministic)
|
|
|
|
+}
|
|
|
|
+func (m *DeleteNodeReq) XXX_Merge(src proto.Message) {
|
|
|
|
+ xxx_messageInfo_DeleteNodeReq.Merge(m, src)
|
|
|
|
+}
|
|
|
|
+func (m *DeleteNodeReq) XXX_Size() int {
|
|
|
|
+ return xxx_messageInfo_DeleteNodeReq.Size(m)
|
|
|
|
+}
|
|
|
|
+func (m *DeleteNodeReq) XXX_DiscardUnknown() {
|
|
|
|
+ xxx_messageInfo_DeleteNodeReq.DiscardUnknown(m)
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+var xxx_messageInfo_DeleteNodeReq proto.InternalMessageInfo
|
|
|
|
+
|
|
|
|
+func (m *DeleteNodeReq) GetMacaddress() string {
|
|
|
|
+ if m != nil {
|
|
|
|
+ return m.Macaddress
|
|
|
|
+ }
|
|
|
|
+ return ""
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (m *DeleteNodeReq) GetGroupName() string {
|
|
|
|
+ if m != nil {
|
|
|
|
+ return m.GroupName
|
|
|
|
+ }
|
|
|
|
+ return ""
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+type DeleteNodeRes struct {
|
|
|
|
+ Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"`
|
|
|
|
+ XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
+ XXX_unrecognized []byte `json:"-"`
|
|
|
|
+ XXX_sizecache int32 `json:"-"`
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (m *DeleteNodeRes) Reset() { *m = DeleteNodeRes{} }
|
|
|
|
+func (m *DeleteNodeRes) String() string { return proto.CompactTextString(m) }
|
|
|
|
+func (*DeleteNodeRes) ProtoMessage() {}
|
|
|
|
+func (*DeleteNodeRes) Descriptor() ([]byte, []int) {
|
|
|
|
+ return fileDescriptor_d13bd996b67da4ef, []int{12}
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (m *DeleteNodeRes) XXX_Unmarshal(b []byte) error {
|
|
|
|
+ return xxx_messageInfo_DeleteNodeRes.Unmarshal(m, b)
|
|
|
|
+}
|
|
|
|
+func (m *DeleteNodeRes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
+ return xxx_messageInfo_DeleteNodeRes.Marshal(b, m, deterministic)
|
|
|
|
+}
|
|
|
|
+func (m *DeleteNodeRes) XXX_Merge(src proto.Message) {
|
|
|
|
+ xxx_messageInfo_DeleteNodeRes.Merge(m, src)
|
|
|
|
+}
|
|
|
|
+func (m *DeleteNodeRes) XXX_Size() int {
|
|
|
|
+ return xxx_messageInfo_DeleteNodeRes.Size(m)
|
|
|
|
+}
|
|
|
|
+func (m *DeleteNodeRes) XXX_DiscardUnknown() {
|
|
|
|
+ xxx_messageInfo_DeleteNodeRes.DiscardUnknown(m)
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+var xxx_messageInfo_DeleteNodeRes proto.InternalMessageInfo
|
|
|
|
+
|
|
|
|
+func (m *DeleteNodeRes) GetSuccess() bool {
|
|
|
|
+ if m != nil {
|
|
|
|
+ return m.Success
|
|
|
|
+ }
|
|
|
|
+ return false
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+type GetPeersReq struct {
|
|
|
|
+ Macaddress string `protobuf:"bytes,1,opt,name=macaddress,proto3" json:"macaddress,omitempty"`
|
|
|
|
+ Group string `protobuf:"bytes,2,opt,name=group,proto3" json:"group,omitempty"`
|
|
|
|
+ XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
+ XXX_unrecognized []byte `json:"-"`
|
|
|
|
+ XXX_sizecache int32 `json:"-"`
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (m *GetPeersReq) Reset() { *m = GetPeersReq{} }
|
|
|
|
+func (m *GetPeersReq) String() string { return proto.CompactTextString(m) }
|
|
|
|
+func (*GetPeersReq) ProtoMessage() {}
|
|
|
|
+func (*GetPeersReq) Descriptor() ([]byte, []int) {
|
|
|
|
+ return fileDescriptor_d13bd996b67da4ef, []int{13}
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (m *GetPeersReq) XXX_Unmarshal(b []byte) error {
|
|
|
|
+ return xxx_messageInfo_GetPeersReq.Unmarshal(m, b)
|
|
|
|
+}
|
|
|
|
+func (m *GetPeersReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
+ return xxx_messageInfo_GetPeersReq.Marshal(b, m, deterministic)
|
|
|
|
+}
|
|
|
|
+func (m *GetPeersReq) XXX_Merge(src proto.Message) {
|
|
|
|
+ xxx_messageInfo_GetPeersReq.Merge(m, src)
|
|
|
|
+}
|
|
|
|
+func (m *GetPeersReq) XXX_Size() int {
|
|
|
|
+ return xxx_messageInfo_GetPeersReq.Size(m)
|
|
|
|
+}
|
|
|
|
+func (m *GetPeersReq) XXX_DiscardUnknown() {
|
|
|
|
+ xxx_messageInfo_GetPeersReq.DiscardUnknown(m)
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+var xxx_messageInfo_GetPeersReq proto.InternalMessageInfo
|
|
|
|
+
|
|
|
|
+func (m *GetPeersReq) GetMacaddress() string {
|
|
|
|
+ if m != nil {
|
|
|
|
+ return m.Macaddress
|
|
|
|
+ }
|
|
|
|
+ return ""
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (m *GetPeersReq) GetGroup() string {
|
|
|
|
+ if m != nil {
|
|
|
|
+ return m.Group
|
|
|
|
+ }
|
|
|
|
+ return ""
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+type GetPeersRes struct {
|
|
|
|
+ Peers *PeersResponse `protobuf:"bytes,1,opt,name=peers,proto3" json:"peers,omitempty"`
|
|
|
|
+ XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
+ XXX_unrecognized []byte `json:"-"`
|
|
|
|
+ XXX_sizecache int32 `json:"-"`
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (m *GetPeersRes) Reset() { *m = GetPeersRes{} }
|
|
|
|
+func (m *GetPeersRes) String() string { return proto.CompactTextString(m) }
|
|
|
|
+func (*GetPeersRes) ProtoMessage() {}
|
|
|
|
+func (*GetPeersRes) Descriptor() ([]byte, []int) {
|
|
|
|
+ return fileDescriptor_d13bd996b67da4ef, []int{14}
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (m *GetPeersRes) XXX_Unmarshal(b []byte) error {
|
|
|
|
+ return xxx_messageInfo_GetPeersRes.Unmarshal(m, b)
|
|
|
|
+}
|
|
|
|
+func (m *GetPeersRes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
+ return xxx_messageInfo_GetPeersRes.Marshal(b, m, deterministic)
|
|
|
|
+}
|
|
|
|
+func (m *GetPeersRes) XXX_Merge(src proto.Message) {
|
|
|
|
+ xxx_messageInfo_GetPeersRes.Merge(m, src)
|
|
|
|
+}
|
|
|
|
+func (m *GetPeersRes) XXX_Size() int {
|
|
|
|
+ return xxx_messageInfo_GetPeersRes.Size(m)
|
|
|
|
+}
|
|
|
|
+func (m *GetPeersRes) XXX_DiscardUnknown() {
|
|
|
|
+ xxx_messageInfo_GetPeersRes.DiscardUnknown(m)
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+var xxx_messageInfo_GetPeersRes proto.InternalMessageInfo
|
|
|
|
+
|
|
|
|
+func (m *GetPeersRes) GetPeers() *PeersResponse {
|
|
|
|
+ if m != nil {
|
|
|
|
+ return m.Peers
|
|
|
|
+ }
|
|
|
|
+ return nil
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+type CheckInReq struct {
|
|
|
|
+ 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 *CheckInReq) Reset() { *m = CheckInReq{} }
|
|
|
|
+func (m *CheckInReq) String() string { return proto.CompactTextString(m) }
|
|
|
|
+func (*CheckInReq) ProtoMessage() {}
|
|
|
|
+func (*CheckInReq) Descriptor() ([]byte, []int) {
|
|
|
|
+ return fileDescriptor_d13bd996b67da4ef, []int{15}
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (m *CheckInReq) XXX_Unmarshal(b []byte) error {
|
|
|
|
+ return xxx_messageInfo_CheckInReq.Unmarshal(m, b)
|
|
|
|
+}
|
|
|
|
+func (m *CheckInReq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
+ return xxx_messageInfo_CheckInReq.Marshal(b, m, deterministic)
|
|
|
|
+}
|
|
|
|
+func (m *CheckInReq) XXX_Merge(src proto.Message) {
|
|
|
|
+ xxx_messageInfo_CheckInReq.Merge(m, src)
|
|
|
|
+}
|
|
|
|
+func (m *CheckInReq) XXX_Size() int {
|
|
|
|
+ return xxx_messageInfo_CheckInReq.Size(m)
|
|
|
|
+}
|
|
|
|
+func (m *CheckInReq) XXX_DiscardUnknown() {
|
|
|
|
+ xxx_messageInfo_CheckInReq.DiscardUnknown(m)
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+var xxx_messageInfo_CheckInReq proto.InternalMessageInfo
|
|
|
|
+
|
|
|
|
+func (m *CheckInReq) GetNode() *Node {
|
|
|
|
+ if m != nil {
|
|
|
|
+ return m.Node
|
|
|
|
+ }
|
|
|
|
+ return nil
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+type CheckInRes struct {
|
|
|
|
+ Checkinresponse *CheckInResponse `protobuf:"bytes,1,opt,name=checkinresponse,proto3" json:"checkinresponse,omitempty"`
|
|
|
|
+ XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
|
|
+ XXX_unrecognized []byte `json:"-"`
|
|
|
|
+ XXX_sizecache int32 `json:"-"`
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (m *CheckInRes) Reset() { *m = CheckInRes{} }
|
|
|
|
+func (m *CheckInRes) String() string { return proto.CompactTextString(m) }
|
|
|
|
+func (*CheckInRes) ProtoMessage() {}
|
|
|
|
+func (*CheckInRes) Descriptor() ([]byte, []int) {
|
|
|
|
+ return fileDescriptor_d13bd996b67da4ef, []int{16}
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func (m *CheckInRes) XXX_Unmarshal(b []byte) error {
|
|
|
|
+ return xxx_messageInfo_CheckInRes.Unmarshal(m, b)
|
|
|
|
+}
|
|
|
|
+func (m *CheckInRes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
|
|
+ return xxx_messageInfo_CheckInRes.Marshal(b, m, deterministic)
|
|
|
|
+}
|
|
|
|
+func (m *CheckInRes) XXX_Merge(src proto.Message) {
|
|
|
|
+ xxx_messageInfo_CheckInRes.Merge(m, src)
|
|
|
|
+}
|
|
|
|
+func (m *CheckInRes) XXX_Size() int {
|
|
|
|
+ return xxx_messageInfo_CheckInRes.Size(m)
|
|
|
|
+}
|
|
|
|
+func (m *CheckInRes) XXX_DiscardUnknown() {
|
|
|
|
+ xxx_messageInfo_CheckInRes.DiscardUnknown(m)
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+var xxx_messageInfo_CheckInRes proto.InternalMessageInfo
|
|
|
|
+
|
|
|
|
+func (m *CheckInRes) GetCheckinresponse() *CheckInResponse {
|
|
|
|
+ if m != nil {
|
|
|
|
+ return m.Checkinresponse
|
|
|
|
+ }
|
|
|
|
+ return nil
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func init() {
|
|
|
|
+ proto.RegisterType((*LoginRequest)(nil), "node.LoginRequest")
|
|
|
|
+ proto.RegisterType((*LoginResponse)(nil), "node.LoginResponse")
|
|
|
|
+ proto.RegisterType((*Node)(nil), "node.Node")
|
|
|
|
+ proto.RegisterType((*CheckInResponse)(nil), "node.CheckInResponse")
|
|
|
|
+ proto.RegisterType((*PeersResponse)(nil), "node.PeersResponse")
|
|
|
|
+ proto.RegisterType((*CreateNodeReq)(nil), "node.CreateNodeReq")
|
|
|
|
+ proto.RegisterType((*CreateNodeRes)(nil), "node.CreateNodeRes")
|
|
|
|
+ proto.RegisterType((*UpdateNodeReq)(nil), "node.UpdateNodeReq")
|
|
|
|
+ proto.RegisterType((*UpdateNodeRes)(nil), "node.UpdateNodeRes")
|
|
|
|
+ proto.RegisterType((*ReadNodeReq)(nil), "node.ReadNodeReq")
|
|
|
|
+ proto.RegisterType((*ReadNodeRes)(nil), "node.ReadNodeRes")
|
|
|
|
+ proto.RegisterType((*DeleteNodeReq)(nil), "node.DeleteNodeReq")
|
|
|
|
+ proto.RegisterType((*DeleteNodeRes)(nil), "node.DeleteNodeRes")
|
|
|
|
+ proto.RegisterType((*GetPeersReq)(nil), "node.GetPeersReq")
|
|
|
|
+ proto.RegisterType((*GetPeersRes)(nil), "node.GetPeersRes")
|
|
|
|
+ proto.RegisterType((*CheckInReq)(nil), "node.CheckInReq")
|
|
|
|
+ proto.RegisterType((*CheckInRes)(nil), "node.CheckInRes")
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+func init() { proto.RegisterFile("grpc/node.proto", fileDescriptor_d13bd996b67da4ef) }
|
|
|
|
+
|
|
|
|
+var fileDescriptor_d13bd996b67da4ef = []byte{
|
|
|
|
+ // 813 bytes of a gzipped FileDescriptorProto
|
|
|
|
+ 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x56, 0x4d, 0x6f, 0xf3, 0x44,
|
|
|
|
+ 0x10, 0x56, 0xf2, 0x26, 0x4d, 0x32, 0x69, 0x9a, 0xbe, 0xdb, 0x16, 0xad, 0xac, 0xaa, 0x8a, 0x7c,
|
|
|
|
+ 0x40, 0x29, 0xa2, 0x49, 0x29, 0x12, 0xe2, 0x86, 0x44, 0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