-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1571 from dnwe/fix-broker-config-admin
fix: use the broker for any admin on BrokerConfig
- Loading branch information
Showing
4 changed files
with
196 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,18 @@ | ||
package sarama | ||
|
||
//ConfigResourceType is a type for config resource | ||
// ConfigResourceType is a type for resources that have configs. | ||
type ConfigResourceType int8 | ||
|
||
// Taken from : | ||
// https://cwiki.apache.org/confluence/display/KAFKA/KIP-133%3A+Describe+and+Alter+Configs+Admin+APIs#KIP-133:DescribeandAlterConfigsAdminAPIs-WireFormattypes | ||
// Taken from: | ||
// https://github.com/apache/kafka/blob/ed7c071e07f1f90e4c2895582f61ca090ced3c42/clients/src/main/java/org/apache/kafka/common/config/ConfigResource.java#L32-L55 | ||
|
||
const ( | ||
//UnknownResource constant type | ||
UnknownResource ConfigResourceType = iota | ||
//AnyResource constant type | ||
AnyResource | ||
//TopicResource constant type | ||
TopicResource | ||
//GroupResource constant type | ||
GroupResource | ||
//ClusterResource constant type | ||
ClusterResource | ||
//BrokerResource constant type | ||
BrokerResource | ||
// UnknownResource constant type | ||
UnknownResource ConfigResourceType = 0 | ||
// TopicResource constant type | ||
TopicResource ConfigResourceType = 2 | ||
// BrokerResource constant type | ||
BrokerResource ConfigResourceType = 4 | ||
// BrokerLoggerResource constant type | ||
BrokerLoggerResource ConfigResourceType = 8 | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters