Documentation ¶
Index ¶
- Variables
- type Convert
- type MsgType
- type PbMessageSig
- func (*PbMessageSig) Descriptor() ([]byte, []int)
- func (m *PbMessageSig) GetHistory() []*PbMessageSig
- func (m *PbMessageSig) GetMask() []byte
- func (m *PbMessageSig) GetMsgType() MsgType
- func (m *PbMessageSig) GetSignature() []byte
- func (m *PbMessageSig) GetSource() int64
- func (m *PbMessageSig) GetStep() int64
- func (*PbMessageSig) ProtoMessage()
- func (m *PbMessageSig) Reset()
- func (m *PbMessageSig) String() string
- func (m *PbMessageSig) XXX_DiscardUnknown()
- func (m *PbMessageSig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PbMessageSig) XXX_Merge(src proto.Message)
- func (m *PbMessageSig) XXX_Size() int
- func (m *PbMessageSig) 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 Convert ¶
type Convert struct{}
func (*Convert) BytesToModelMessage ¶
func (c *Convert) BytesToModelMessage(msgBytes []byte) *modelBLS.MessageWithSig
func (*Convert) MessageToBytes ¶
func (c *Convert) MessageToBytes(msg modelBLS.MessageWithSig) *[]byte
type PbMessageSig ¶
type PbMessageSig struct { MsgType *MsgType `protobuf:"varint,1,req,name=Msg_type,json=MsgType,enum=messageSigpb.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 []*PbMessageSig `protobuf:"bytes,4,rep,name=history" json:"history,omitempty"` Signature []byte `protobuf:"bytes,5,opt,name=signature" json:"signature,omitempty"` Mask []byte `protobuf:"bytes,6,opt,name=mask" json:"mask,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PbMessageSig) Descriptor ¶
func (*PbMessageSig) Descriptor() ([]byte, []int)
func (*PbMessageSig) GetHistory ¶
func (m *PbMessageSig) GetHistory() []*PbMessageSig
func (*PbMessageSig) GetMask ¶
func (m *PbMessageSig) GetMask() []byte
func (*PbMessageSig) GetMsgType ¶
func (m *PbMessageSig) GetMsgType() MsgType
func (*PbMessageSig) GetSignature ¶
func (m *PbMessageSig) GetSignature() []byte
func (*PbMessageSig) GetSource ¶
func (m *PbMessageSig) GetSource() int64
func (*PbMessageSig) GetStep ¶
func (m *PbMessageSig) GetStep() int64
func (*PbMessageSig) ProtoMessage ¶
func (*PbMessageSig) ProtoMessage()
func (*PbMessageSig) Reset ¶
func (m *PbMessageSig) Reset()
func (*PbMessageSig) String ¶
func (m *PbMessageSig) String() string
func (*PbMessageSig) XXX_DiscardUnknown ¶
func (m *PbMessageSig) XXX_DiscardUnknown()
func (*PbMessageSig) XXX_Marshal ¶
func (m *PbMessageSig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PbMessageSig) XXX_Merge ¶
func (m *PbMessageSig) XXX_Merge(src proto.Message)
func (*PbMessageSig) XXX_Size ¶
func (m *PbMessageSig) XXX_Size() int
func (*PbMessageSig) XXX_Unmarshal ¶
func (m *PbMessageSig) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.