Documentation ¶
Index ¶
- Variables
- type Message
- func (m *Message) Data() []byte
- func (m *Message) From() []byte
- func (m *Message) IsInterfaceNil() bool
- func (m *Message) Key() []byte
- func (m *Message) Payload() []byte
- func (m *Message) Peer() core.PeerID
- func (m *Message) SeqNo() []byte
- func (m *Message) Signature() []byte
- func (m *Message) Timestamp() int64
- func (m *Message) Topic() string
- type PeerShard
- func (*PeerShard) Descriptor() ([]byte, []int)
- func (this *PeerShard) Equal(that interface{}) bool
- func (m *PeerShard) GetShardId() string
- func (this *PeerShard) GoString() string
- func (m *PeerShard) Marshal() (dAtA []byte, err error)
- func (m *PeerShard) MarshalTo(dAtA []byte) (int, error)
- func (m *PeerShard) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PeerShard) ProtoMessage()
- func (m *PeerShard) Reset()
- func (m *PeerShard) Size() (n int)
- func (this *PeerShard) String() string
- func (m *PeerShard) Unmarshal(dAtA []byte) error
- func (m *PeerShard) XXX_DiscardUnknown()
- func (m *PeerShard) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PeerShard) XXX_Merge(src proto.Message)
- func (m *PeerShard) XXX_Size() int
- func (m *PeerShard) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct { FromField []byte DataField []byte PayloadField []byte SeqNoField []byte TopicField string SignatureField []byte KeyField []byte PeerField core.PeerID TimestampField int64 }
Message is a data holder struct
func (*Message) IsInterfaceNil ¶
IsInterfaceNil returns true if there is no value under the interface
func (*Message) Key ¶
Key returns the message public key (if it can not be recovered from From field)
func (*Message) Payload ¶
Payload returns the encapsulated message along with meta data such as timestamp
type PeerShard ¶
type PeerShard struct {
ShardId string `protobuf:"bytes,1,opt,name=ShardId,proto3" json:"shardId"`
}
PeerShard represents the data regarding a peer's shard
func (*PeerShard) Descriptor ¶
func (*PeerShard) GetShardId ¶
func (*PeerShard) MarshalToSizedBuffer ¶
func (*PeerShard) ProtoMessage ¶
func (*PeerShard) ProtoMessage()
func (*PeerShard) XXX_DiscardUnknown ¶
func (m *PeerShard) XXX_DiscardUnknown()
func (*PeerShard) XXX_Marshal ¶
func (*PeerShard) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.