blob: bef1053aaeda15ed37bd050d0f4afcb2e10d27ca [file] [log] [blame]
Scott Bakered4efab2020-01-13 19:12:25 -08001package sarama
2
David K. Bainbridgebd6b2882021-08-26 13:31:02 +00003// ConfigResourceType is a type for resources that have configs.
Scott Bakered4efab2020-01-13 19:12:25 -08004type ConfigResourceType int8
5
David K. Bainbridgebd6b2882021-08-26 13:31:02 +00006// Taken from:
7// https://github.com/apache/kafka/blob/ed7c071e07f1f90e4c2895582f61ca090ced3c42/clients/src/main/java/org/apache/kafka/common/config/ConfigResource.java#L32-L55
Scott Bakered4efab2020-01-13 19:12:25 -08008
9const (
David K. Bainbridgebd6b2882021-08-26 13:31:02 +000010 // UnknownResource constant type
11 UnknownResource ConfigResourceType = 0
12 // TopicResource constant type
13 TopicResource ConfigResourceType = 2
14 // BrokerResource constant type
15 BrokerResource ConfigResourceType = 4
16 // BrokerLoggerResource constant type
17 BrokerLoggerResource ConfigResourceType = 8
Scott Bakered4efab2020-01-13 19:12:25 -080018)