Documentation
¶
Index ¶
- func IsGroupMessageCommit(payload *envelopesProto.ClientEnvelope_GroupMessage) (bool, error)
- type ApplicationContent
- type CommitIn
- type ContentType
- type FramedContentBodyIn
- type FramedContentIn
- type GroupID
- type MlsMessageBodyIn
- type MlsMessageIn
- type PrivateMessageIn
- type ProposalIn
- type ProtocolVersion
- type PublicMessageIn
- type Sender
- type SenderType
- type TLSDeserializable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsGroupMessageCommit ¶
func IsGroupMessageCommit( payload *envelopesProto.ClientEnvelope_GroupMessage, ) (bool, error)
Types ¶
type ApplicationContent ¶
type ApplicationContent struct{}
Application (stub)
func (*ApplicationContent) ContentType ¶
func (*ApplicationContent) ContentType() ContentType
func (*ApplicationContent) TLSDeserialize ¶
func (a *ApplicationContent) TLSDeserialize(r *bytes.Reader) error
type CommitIn ¶
type CommitIn struct{}
Commit (stub)
func (*CommitIn) ContentType ¶
func (*CommitIn) ContentType() ContentType
type ContentType ¶
type ContentType uint8
const ( ContentTypeApplication ContentType = 1 ContentTypeProposal ContentType = 2 ContentTypeCommit ContentType = 3 )
type FramedContentBodyIn ¶
type FramedContentBodyIn interface {
TLSDeserialize(r *bytes.Reader) error
ContentType() ContentType
}
type FramedContentIn ¶
type FramedContentIn struct {
GroupID GroupID
Epoch uint64
Sender Sender
AuthenticatedData []byte
Body FramedContentBodyIn
}
func (*FramedContentIn) TLSDeserialize ¶
func (f *FramedContentIn) TLSDeserialize(r *bytes.Reader) error
type MlsMessageBodyIn ¶
type MlsMessageBodyIn interface {
TLSDeserializable
}
func DeserializeMlsMessageBodyIn ¶
func DeserializeMlsMessageBodyIn(r *bytes.Reader) (MlsMessageBodyIn, error)
type MlsMessageIn ¶
type MlsMessageIn struct {
Version ProtocolVersion
Body MlsMessageBodyIn
}
func DeserializeGroupMessage ¶
func DeserializeGroupMessage( payload *envelopesProto.ClientEnvelope_GroupMessage, ) (*MlsMessageIn, error)
func (*MlsMessageIn) TLSDeserialize ¶
func (m *MlsMessageIn) TLSDeserialize(r *bytes.Reader) error
type PrivateMessageIn ¶
type PrivateMessageIn struct {
GroupID []byte
Epoch uint64
ContentType ContentType
}
func (*PrivateMessageIn) TLSDeserialize ¶
func (p *PrivateMessageIn) TLSDeserialize(r *bytes.Reader) error
type ProposalIn ¶
type ProposalIn struct{}
Proposal (stub)
func (*ProposalIn) ContentType ¶
func (*ProposalIn) ContentType() ContentType
func (*ProposalIn) TLSDeserialize ¶
func (p *ProposalIn) TLSDeserialize(r *bytes.Reader) error
type ProtocolVersion ¶
type ProtocolVersion uint16
type PublicMessageIn ¶
type PublicMessageIn struct {
Content FramedContentIn
}
func (*PublicMessageIn) TLSDeserialize ¶
func (p *PublicMessageIn) TLSDeserialize(r *bytes.Reader) error
type Sender ¶
type Sender struct {
Type SenderType
LeafIndex *uint32 // Only set if Member
SenderIndex *uint32 // Only set if External
}
type SenderType ¶
type SenderType uint8
const ( SenderTypeReserved SenderType = 0 SenderTypeMember SenderType = 1 SenderTypeExternal SenderType = 2 SenderTypeNewMemberProposal SenderType = 3 SenderTypeNewMemberCommit SenderType = 4 )
type TLSDeserializable ¶
Click to show internal directories.
Click to hide internal directories.