Documentation ¶
Index ¶
- Variables
- type MsgType
- type PbMessage
- func (*PbMessage) Descriptor() ([]byte, []int)
- func (m *PbMessage) GetHistory() []*PbMessage
- func (m *PbMessage) GetMsgType() MsgType
- func (m *PbMessage) GetSource() int64
- func (m *PbMessage) GetStep() int64
- func (*PbMessage) ProtoMessage()
- func (m *PbMessage) Reset()
- func (m *PbMessage) String() string
- func (m *PbMessage) XXX_DiscardUnknown()
- func (m *PbMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PbMessage) XXX_Merge(src proto.Message)
- func (m *PbMessage) XXX_Size() int
- func (m *PbMessage) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var MsgType_name = map[int32]string{
0: "Raw",
1: "Ack",
2: "Wit",
3: "Catchup",
}
View Source
var MsgType_value = map[string]int32{
"Raw": 0,
"Ack": 1,
"Wit": 2,
"Catchup": 3,
}
Functions ¶
This section is empty.
Types ¶
type PbMessage ¶
type PbMessage struct { MsgType *MsgType `protobuf:"varint,1,req,name=Msg_type,json=MsgType,enum=libp2p_pubsub.MsgType" json:"Msg_type,omitempty"` Source *int64 `protobuf:"varint,2,req,name=source" json:"source,omitempty"` Step *int64 `protobuf:"varint,3,req,name=step" json:"step,omitempty"` History []*PbMessage `protobuf:"bytes,4,rep,name=history" json:"history,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PbMessage) Descriptor ¶
func (*PbMessage) GetHistory ¶
func (*PbMessage) GetMsgType ¶
func (*PbMessage) ProtoMessage ¶
func (*PbMessage) ProtoMessage()
func (*PbMessage) XXX_DiscardUnknown ¶
func (m *PbMessage) XXX_DiscardUnknown()
func (*PbMessage) XXX_Marshal ¶
func (*PbMessage) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.