Exemplo n.º 1
0
func (t *FetchMessageSetInTopic) Marshal(w *wipro.Writer) {
	w.WriteString(t.TopicName)
	w.WriteInt32(int32(len(t.FetchMessageSetInPartitions)))
	for i := range t.FetchMessageSetInPartitions {
		t.FetchMessageSetInPartitions[i].Marshal(w)
	}
}
Exemplo n.º 2
0
func (t *OffsetFetchRequestV1) Marshal(w *wipro.Writer) {
	w.WriteString(t.ConsumerGroup)
	w.WriteInt32(int32(len(t.PartitionInTopics)))
	for i := range t.PartitionInTopics {
		t.PartitionInTopics[i].Marshal(w)
	}
}
Exemplo n.º 3
0
func (t *Request) Marshal(w *wipro.Writer) {
	w.WriteInt16(t.APIKey)
	w.WriteInt16(t.APIVersion)
	w.WriteInt32(t.CorrelationID)
	w.WriteString(t.ClientID)
	t.RequestMessage.Marshal(w)
}
Exemplo n.º 4
0
func (t *PartitionAssignment) Marshal(w *wipro.Writer) {
	w.WriteString(t.Topic)
	w.WriteInt32(int32(len(t.Partitions)))
	for i := range t.Partitions {
		w.WriteInt32(t.Partitions[i])
	}
}
Exemplo n.º 5
0
func (t *Member) Marshal(w *wipro.Writer) {
	w.WriteString(t.MemberID)
	w.WriteString(t.ClientID)
	w.WriteString(t.ClientHost)
	w.WriteBytes(t.MemberMetadata)
	t.MemberAssignment.Marshal(w)
}
Exemplo n.º 6
0
func (t *OffsetMetadataInTopic) Marshal(w *wipro.Writer) {
	w.WriteString(t.TopicName)
	w.WriteInt32(int32(len(t.OffsetMetadataInPartitions)))
	for i := range t.OffsetMetadataInPartitions {
		t.OffsetMetadataInPartitions[i].Marshal(w)
	}
}
Exemplo n.º 7
0
func (t *OffsetCommitRequestV0) Marshal(w *wipro.Writer) {
	w.WriteString(t.ConsumerGroupID)
	w.WriteInt32(int32(len(t.OffsetCommitInTopicV0s)))
	for i := range t.OffsetCommitInTopicV0s {
		t.OffsetCommitInTopicV0s[i].Marshal(w)
	}
}
Exemplo n.º 8
0
func (t *OffsetCommitInTopicV2) Marshal(w *wipro.Writer) {
	w.WriteString(t.TopicName)
	w.WriteInt32(int32(len(t.OffsetCommitInPartitionV2s)))
	for i := range t.OffsetCommitInPartitionV2s {
		t.OffsetCommitInPartitionV2s[i].Marshal(w)
	}
}
Exemplo n.º 9
0
func (t *TopicMetadata) Marshal(w *wipro.Writer) {
	t.ErrorCode.Marshal(w)
	w.WriteString(t.TopicName)
	w.WriteInt32(int32(len(t.PartitionMetadatas)))
	for i := range t.PartitionMetadatas {
		t.PartitionMetadatas[i].Marshal(w)
	}
}
Exemplo n.º 10
0
func (t *JoinGroupResponse) Marshal(w *wipro.Writer) {
	t.ErrorCode.Marshal(w)
	w.WriteInt32(t.GenerationID)
	w.WriteString(t.GroupProtocolName)
	w.WriteString(t.LeaderID)
	w.WriteString(t.MemberID)
	t.MemberWithMetas.Marshal(w)
}
Exemplo n.º 11
0
func (t *OffsetCommitRequestV2) Marshal(w *wipro.Writer) {
	w.WriteString(t.ConsumerGroup)
	w.WriteInt32(t.ConsumerGroupGenerationID)
	w.WriteString(t.ConsumerID)
	w.WriteInt64(t.RetentionTime)
	w.WriteInt32(int32(len(t.OffsetCommitInTopicV2s)))
	for i := range t.OffsetCommitInTopicV2s {
		t.OffsetCommitInTopicV2s[i].Marshal(w)
	}
}
Exemplo n.º 12
0
func (t *GroupDescription) Marshal(w *wipro.Writer) {
	t.ErrorCode.Marshal(w)
	w.WriteString(t.GroupID)
	w.WriteString(t.State)
	w.WriteString(t.ProtocolType)
	w.WriteString(t.Protocol)
	t.Members.Marshal(w)
}
Exemplo n.º 13
0
func (t *JoinGroupRequest) Marshal(w *wipro.Writer) {
	w.WriteString(t.GroupID)
	w.WriteInt32(t.SessionTimeout)
	w.WriteString(t.MemberID)
	w.WriteString(t.ProtocolType)
	t.GroupProtocols.Marshal(w)
}
Exemplo n.º 14
0
func (t *GroupAssignment) Marshal(w *wipro.Writer) {
	w.WriteString(t.MemberID)
	t.MemberAssignment.Marshal(w)
}
Exemplo n.º 15
0
func (t *SyncGroupRequest) Marshal(w *wipro.Writer) {
	w.WriteString(t.GroupID)
	w.WriteInt32(t.GenerationID)
	w.WriteString(t.MemberID)
	t.GroupAssignments.Marshal(w)
}
Exemplo n.º 16
0
func (t *MemberWithMeta) Marshal(w *wipro.Writer) {
	w.WriteString(t.MemberID)
	w.WriteBytes(t.MemberMetadata)
}
Exemplo n.º 17
0
func (t *DescribeGroupsRequest) Marshal(w *wipro.Writer) {
	w.WriteInt32(int32(len((*t))))
	for i := range *t {
		w.WriteString((*t)[i])
	}
}
Exemplo n.º 18
0
func (t *Subscription) Marshal(w *wipro.Writer) {
	w.WriteInt32(int32(len((*t))))
	for i := range *t {
		w.WriteString((*t)[i])
	}
}
Exemplo n.º 19
0
func (t *GroupProtocol) Marshal(w *wipro.Writer) {
	w.WriteString(t.ProtocolName)
	t.ProtocolMetadata.Marshal(w)
}
Exemplo n.º 20
0
func (t *OffsetMetadataInPartition) Marshal(w *wipro.Writer) {
	w.WriteInt32(t.Partition)
	w.WriteInt64(t.Offset)
	w.WriteString(t.Metadata)
	t.ErrorCode.Marshal(w)
}
Exemplo n.º 21
0
func (t *TopicMetadataRequest) Marshal(w *wipro.Writer) {
	w.WriteInt32(int32(len((*t))))
	for i := range *t {
		w.WriteString((*t)[i])
	}
}
Exemplo n.º 22
0
func (t *OffsetCommitInPartitionV2) Marshal(w *wipro.Writer) {
	w.WriteInt32(t.Partition)
	w.WriteInt64(t.Offset)
	w.WriteString(t.Metadata)
}
Exemplo n.º 23
0
func (t *Group) Marshal(w *wipro.Writer) {
	w.WriteString(t.GroupID)
	w.WriteString(t.ProtocolType)
}
Exemplo n.º 24
0
func (t *Broker) Marshal(w *wipro.Writer) {
	w.WriteInt32(t.NodeID)
	w.WriteString(t.Host)
	w.WriteInt32(t.Port)
}
Exemplo n.º 25
0
func (t *GroupCoordinatorRequest) Marshal(w *wipro.Writer) {
	w.WriteString(string((*t)))
}
Exemplo n.º 26
0
func (t *HeartbeatRequest) Marshal(w *wipro.Writer) {
	w.WriteString(t.GroupID)
	w.WriteInt32(t.GenerationID)
	w.WriteString(t.MemberID)
}
Exemplo n.º 27
0
func (t *LeaveGroupRequest) Marshal(w *wipro.Writer) {
	w.WriteString(t.GroupID)
	w.WriteString(t.MemberID)
}