blob: bef1053aaeda15ed37bd050d0f4afcb2e10d27ca [file] [log] [blame]
khenaidooac637102019-01-14 15:44:34 -05001package sarama
2
khenaidood948f772021-08-11 17:49:24 -04003// ConfigResourceType is a type for resources that have configs.
khenaidooac637102019-01-14 15:44:34 -05004type ConfigResourceType int8
5
khenaidood948f772021-08-11 17:49:24 -04006// Taken from:
7// https://github.com/apache/kafka/blob/ed7c071e07f1f90e4c2895582f61ca090ced3c42/clients/src/main/java/org/apache/kafka/common/config/ConfigResource.java#L32-L55
khenaidooac637102019-01-14 15:44:34 -05008
9const (
khenaidood948f772021-08-11 17:49:24 -040010 // 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
khenaidooac637102019-01-14 15:44:34 -050018)