Documentation ¶
Overview ¶
Package proto is a generated protocol buffer package.
It is generated from these files:
message.proto
It has these top-level messages:
Header Message HandShake
Index ¶
- type HandShake
- func (*HandShake) Descriptor() ([]byte, []int)
- func (m *HandShake) GetAddress() string
- func (m *HandShake) GetCert() []byte
- func (m *HandShake) GetId() []byte
- func (m *HandShake) GetName() string
- func (m *HandShake) GetSignature() []byte
- func (m *HandShake) GetType() uint32
- func (m *HandShake) GetVersion() string
- func (handshake *HandShake) MarshalMsg() ([]byte, error)
- func (*HandShake) ProtoMessage()
- func (m *HandShake) Reset()
- func (m *HandShake) String() string
- func (handshake *HandShake) UnmarshalMsg(data []byte) error
- type Header
- type Message
- func (*Message) Descriptor() ([]byte, []int)
- func (m *Message) GetHeader() *Header
- func (m *Message) GetPayload() []byte
- func (msg *Message) MarshalMsg() ([]byte, error)
- func (*Message) ProtoMessage()
- func (m *Message) Reset()
- func (m *Message) String() string
- func (msg *Message) UnmarshalMsg(data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HandShake ¶
type HandShake struct { Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` Version string `protobuf:"bytes,2,opt,name=version" json:"version,omitempty"` Id []byte `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` Address string `protobuf:"bytes,4,opt,name=address" json:"address,omitempty"` Type uint32 `protobuf:"varint,5,opt,name=type" json:"type,omitempty"` Signature []byte `protobuf:"bytes,6,opt,name=signature,proto3" json:"signature,omitempty"` Cert []byte `protobuf:"bytes,7,opt,name=cert,proto3" json:"cert,omitempty"` }
func (*HandShake) Descriptor ¶
func (*HandShake) GetAddress ¶
func (*HandShake) GetSignature ¶
func (*HandShake) GetVersion ¶
func (*HandShake) MarshalMsg ¶
func (*HandShake) ProtoMessage ¶
func (*HandShake) ProtoMessage()
func (*HandShake) UnmarshalMsg ¶
type Header ¶
type Header struct { Magic uint32 `protobuf:"varint,1,opt,name=magic" json:"magic,omitempty"` SeqNum uint32 `protobuf:"varint,2,opt,name=seqNum" json:"seqNum,omitempty"` ProtoID uint32 `protobuf:"varint,3,opt,name=protoID" json:"protoID,omitempty"` MsgID uint32 `protobuf:"varint,4,opt,name=msgID" json:"msgID,omitempty"` }
func (*Header) Descriptor ¶
func (*Header) GetProtoID ¶
func (*Header) ProtoMessage ¶
func (*Header) ProtoMessage()
type Message ¶
type Message struct { Header *Header `protobuf:"bytes,1,opt,name=header" json:"header,omitempty"` Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` }
func NewMessage ¶
func (*Message) Descriptor ¶
func (*Message) GetPayload ¶
func (*Message) MarshalMsg ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) UnmarshalMsg ¶
Click to show internal directories.
Click to hide internal directories.