Versions in this module Expand all Collapse all v2 v2.1.0 Nov 26, 2026 Changes in this version + const APIKeyInitProducerID + const INVALID_PRODUCER_EPOCH + const INVALID_REQUIRED_ACKS + const OUT_OF_ORDER_SEQUENCE_NUMBER + func ProduceErrorResponse(req *kmsg.ProduceRequest, code int16) *kmsg.ProduceResponse + func UnsupportedTransactionResponse(req kmsg.Request) kmsg.Response v2.0.1 Nov 20, 2026 Changes in this version + const APIKeyAlterConfigs + const APIKeyApiVersion + const APIKeyCreatePartitions + const APIKeyCreateTopics + const APIKeyDeleteGroups + const APIKeyDeleteTopics + const APIKeyDescribeConfigs + const APIKeyDescribeGroups + const APIKeyFetch + const APIKeyFindCoordinator + const APIKeyHeartbeat + const APIKeyJoinGroup + const APIKeyLeaveGroup + const APIKeyListGroups + const APIKeyListOffsets + const APIKeyMetadata + const APIKeyOffsetCommit + const APIKeyOffsetFetch + const APIKeyOffsetForLeaderEpoch + const APIKeyProduce + const APIKeySyncGroup + const ApiVersionsMaxVersion + const CLUSTER_AUTHORIZATION_FAILED + const COORDINATOR_LOAD_IN_PROGRESS + const COORDINATOR_NOT_AVAILABLE + const CORRUPT_MESSAGE + const DefaultResponseWriteLimit + const DefaultResponseWriteTimeout + const GROUP_AUTHORIZATION_FAILED + const GROUP_ID_NOT_FOUND + const ILLEGAL_GENERATION + const INVALID_CONFIG + const INVALID_PARTITIONS + const INVALID_REQUEST + const INVALID_TOPIC_EXCEPTION + const KAFKA_STORAGE_ERROR + const LEADER_NOT_AVAILABLE + const NONE + const NON_EMPTY_GROUP + const NOT_COORDINATOR + const NOT_LEADER_OR_FOLLOWER + const OFFSET_OUT_OF_RANGE + const REBALANCE_IN_PROGRESS + const REQUEST_TIMED_OUT + const ResponseWriteChunk + const TOPIC_ALREADY_EXISTS + const TOPIC_AUTHORIZATION_FAILED + const UNKNOWN_MEMBER_ID + const UNKNOWN_SERVER_ERROR + const UNKNOWN_TOPIC_ID + const UNKNOWN_TOPIC_OR_PARTITION + const UNSUPPORTED_VERSION + func ClientGone(ctx context.Context) <-chan struct + func ContextUntilClientGone(ctx context.Context) (context.Context, context.CancelFunc) + func ContextWithClientGone(ctx context.Context, gone <-chan struct{}) context.Context + func EncodeResponse(correlationID int32, apiVersion int16, resp kmsg.Response) []byte + func GroupResponseErrorCode(apiKey int16, apiVersion int16, resp []byte) (int16, bool) + func SkipResponseHeader(apiKey, apiVersion int16, data []byte) ([]byte, bool) + func WriteFrame(w io.Writer, payload []byte) error + func WriteFrameWithDeadline(conn net.Conn, payload []byte, timeout time.Duration) error + type Frame struct + Length int32 + Payload []byte + func ReadFrame(r io.Reader) (*Frame, error) + type MetadataBroker = kmsg.MetadataResponseBroker + type MetadataPartition = kmsg.MetadataResponseTopicPartition + type MetadataTopic = kmsg.MetadataResponseTopic + type ProduceRequest = kmsg.ProduceRequest + type RequestHeader struct + APIKey int16 + APIVersion int16 + ClientID *string + CorrelationID int32 + func ParseRequest(b []byte) (*RequestHeader, kmsg.Request, error) + func ParseRequestBody(header *RequestHeader, body []byte) (*RequestHeader, kmsg.Request, error) + func ParseRequestHeader(b []byte) (*RequestHeader, []byte, error) Other modules containing this package github.com/KafScale/platform