mirror of
https://github.com/didi/KnowStreaming.git
synced 2026-01-07 15:12:14 +08:00
Add km module kafka gateway
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
// Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
// contributor license agreements. See the NOTICE file distributed with
|
||||
// this work for additional information regarding copyright ownership.
|
||||
// The ASF licenses this file to You under the Apache License, Version 2.0
|
||||
// (the "License"); you may not use this file except in compliance with
|
||||
// the License. You may obtain a copy of the License at
|
||||
//
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
//
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
{
|
||||
"apiKey": 9,
|
||||
"type": "request",
|
||||
"name": "OffsetFetchRequest",
|
||||
// In version 0, the request read offsets from ZK.
|
||||
//
|
||||
// Starting in version 1, the broker supports fetching offsets from the internal __consumer_offsets topic.
|
||||
//
|
||||
// Starting in version 2, the request can contain a null topics array to indicate that offsets
|
||||
// for all topics should be fetched. It also returns a top level error code
|
||||
// for group or coordinator level errors.
|
||||
//
|
||||
// Version 3, 4, and 5 are the same as version 2.
|
||||
//
|
||||
// Version 6 is the first flexible version.
|
||||
//
|
||||
// Version 7 is adding the require stable flag.
|
||||
"validVersions": "0-7",
|
||||
"flexibleVersions": "6+",
|
||||
"fields": [
|
||||
{ "name": "GroupId", "type": "string", "versions": "0+", "entityType": "groupId",
|
||||
"about": "The group to fetch offsets for." },
|
||||
{ "name": "Topics", "type": "[]OffsetFetchRequestTopic", "versions": "0+", "nullableVersions": "2+",
|
||||
"about": "Each topic we would like to fetch offsets for, or null to fetch offsets for all topics.", "fields": [
|
||||
{ "name": "Name", "type": "string", "versions": "0+", "entityType": "topicName",
|
||||
"about": "The topic name."},
|
||||
{ "name": "PartitionIndexes", "type": "[]int32", "versions": "0+",
|
||||
"about": "The partition indexes we would like to fetch offsets for." }
|
||||
]},
|
||||
{"name": "RequireStable", "type": "bool", "versions": "7+", "default": "false",
|
||||
"about": "Whether broker should hold on returning unstable offsets but set a retriable error code for the partition."}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user