config_resource_type.go 599 B

123456789101112131415161718
  1. package sarama
  2. // ConfigResourceType is a type for resources that have configs.
  3. type ConfigResourceType int8
  4. // Taken from:
  5. // https://github.com/apache/kafka/blob/ed7c071e07f1f90e4c2895582f61ca090ced3c42/clients/src/main/java/org/apache/kafka/common/config/ConfigResource.java#L32-L55
  6. const (
  7. // UnknownResource constant type
  8. UnknownResource ConfigResourceType = 0
  9. // TopicResource constant type
  10. TopicResource ConfigResourceType = 2
  11. // BrokerResource constant type
  12. BrokerResource ConfigResourceType = 4
  13. // BrokerLoggerResource constant type
  14. BrokerLoggerResource ConfigResourceType = 8
  15. )