// Code generated by protoc-gen-gogo. // source: p2p.proto // DO NOT EDIT! /* Package protocols_p2p is a generated protocol buffer package. It is generated from these files: p2p.proto It has these top-level messages: MessageData PingRequest PingResponse EchoRequest EchoResponse */ package protocols_p2p import proto "github.com/gogo/protobuf/proto" import fmt "fmt" import math "math" // Reference imports to suppress errors if they are not otherwise used. var _ = proto.Marshal var _ = fmt.Errorf var _ = math.Inf // designed to be shared between all app protocols type MessageData struct { // shared between all requests ClientVersion string `protobuf:"bytes,1,opt,name=clientVersion,proto3" json:"clientVersion,omitempty"` Timestamp int64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` Gossip bool `protobuf:"varint,4,opt,name=gossip,proto3" json:"gossip,omitempty"` NodeId string `protobuf:"bytes,5,opt,name=nodeId,proto3" json:"nodeId,omitempty"` NodePubKey []byte `protobuf:"bytes,6,opt,name=nodePubKey,proto3" json:"nodePubKey,omitempty"` Sign string `protobuf:"bytes,7,opt,name=sign,proto3" json:"sign,omitempty"` } func (m *MessageData) Reset() { *m = MessageData{} } func (m *MessageData) String() string { return proto.CompactTextString(m) } func (*MessageData) ProtoMessage() {} // a protocol define a set of reuqest and responses type PingRequest struct { MessageData *MessageData `protobuf:"bytes,1,opt,name=messageData" json:"messageData,omitempty"` // method specific data Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` } func (m *PingRequest) Reset() { *m = PingRequest{} } func (m *PingRequest) String() string { return proto.CompactTextString(m) } func (*PingRequest) ProtoMessage() {} func (m *PingRequest) GetMessageData() *MessageData { if m != nil { return m.MessageData } return nil } type PingResponse struct { MessageData *MessageData `protobuf:"bytes,1,opt,name=messageData" json:"messageData,omitempty"` // response specific data Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` } func (m *PingResponse) Reset() { *m = PingResponse{} } func (m *PingResponse) String() string { return proto.CompactTextString(m) } func (*PingResponse) ProtoMessage() {} func (m *PingResponse) GetMessageData() *MessageData { if m != nil { return m.MessageData } return nil } // a protocol define a set of reuqest and responses type EchoRequest struct { MessageData *MessageData `protobuf:"bytes,1,opt,name=messageData" json:"messageData,omitempty"` // method specific data Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` } func (m *EchoRequest) Reset() { *m = EchoRequest{} } func (m *EchoRequest) String() string { return proto.CompactTextString(m) } func (*EchoRequest) ProtoMessage() {} func (m *EchoRequest) GetMessageData() *MessageData { if m != nil { return m.MessageData } return nil } type EchoResponse struct { MessageData *MessageData `protobuf:"bytes,1,opt,name=messageData" json:"messageData,omitempty"` // response specific data Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` } func (m *EchoResponse) Reset() { *m = EchoResponse{} } func (m *EchoResponse) String() string { return proto.CompactTextString(m) } func (*EchoResponse) ProtoMessage() {} func (m *EchoResponse) GetMessageData() *MessageData { if m != nil { return m.MessageData } return nil } func init() { proto.RegisterType((*MessageData)(nil), "protocols.p2p.MessageData") proto.RegisterType((*PingRequest)(nil), "protocols.p2p.PingRequest") proto.RegisterType((*PingResponse)(nil), "protocols.p2p.PingResponse") proto.RegisterType((*EchoRequest)(nil), "protocols.p2p.EchoRequest") proto.RegisterType((*EchoResponse)(nil), "protocols.p2p.EchoResponse") }