blob: bef1053aaeda15ed37bd050d0f4afcb2e10d27ca [file] [log] [blame]
Scott Baker2c1c4822019-10-16 11:02:41 -07001package sarama
2
khenaidoo26721882021-08-11 17:42:52 -04003// ConfigResourceType is a type for resources that have configs.
Scott Baker2c1c4822019-10-16 11:02:41 -07004type ConfigResourceType int8
5
khenaidoo26721882021-08-11 17:42:52 -04006// Taken from:
7// https://github.com/apache/kafka/blob/ed7c071e07f1f90e4c2895582f61ca090ced3c42/clients/src/main/java/org/apache/kafka/common/config/ConfigResource.java#L32-L55
Scott Baker2c1c4822019-10-16 11:02:41 -07008
9const (
khenaidoo26721882021-08-11 17:42:52 -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
Scott Baker2c1c4822019-10-16 11:02:41 -070018)