@@ -70,3 +70,8 @@ func (m *message) decode(pd packetDecoder) (err error) {
return nil
}
+
+func newMessageFromString(in string) message {
+ buf := make([]byte, len(in))
+ return message{COMPRESSION_NONE, nil, &buf}
+}
@@ -1 +1,17 @@
package kafka
+type produceRequestPartitionBlock struct {
+ partition int32
+ msgSet *messageSet
+type produceRequestTopicBlock struct {
+ topic *string
+ partitions []produceRequestPartitionBlock
+type produceRequest struct {
+ requiredAcks int16
+ timeout int32
+ topics []produceRequestTopicBlock