moved the kafka-go project to this repository
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
package protocol
|
||||
|
||||
type RequestHeader struct {
|
||||
APIKey int16
|
||||
APIVersion int16
|
||||
Correlation_id int32
|
||||
}
|
||||
|
||||
func ParseRequestHeader(r *Request) *RequestHeader {
|
||||
apiKey := r.ReadInt16()
|
||||
apiVersion := r.ReadInt16()
|
||||
correlation_id := r.ReadInt32()
|
||||
|
||||
return &RequestHeader{
|
||||
APIKey: apiKey,
|
||||
APIVersion: apiVersion,
|
||||
Correlation_id: correlation_id,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user