Scott Baker | ed4efab | 2020-01-13 19:12:25 -0800 | [diff] [blame] | 1 | package sarama |
| 2 | |
David K. Bainbridge | bd6b288 | 2021-08-26 13:31:02 +0000 | [diff] [blame] | 3 | // ConfigResourceType is a type for resources that have configs. |
Scott Baker | ed4efab | 2020-01-13 19:12:25 -0800 | [diff] [blame] | 4 | type ConfigResourceType int8 |
| 5 | |
David K. Bainbridge | bd6b288 | 2021-08-26 13:31:02 +0000 | [diff] [blame] | 6 | // Taken from: |
| 7 | // https://github.com/apache/kafka/blob/ed7c071e07f1f90e4c2895582f61ca090ced3c42/clients/src/main/java/org/apache/kafka/common/config/ConfigResource.java#L32-L55 |
Scott Baker | ed4efab | 2020-01-13 19:12:25 -0800 | [diff] [blame] | 8 | |
| 9 | const ( |
David K. Bainbridge | bd6b288 | 2021-08-26 13:31:02 +0000 | [diff] [blame] | 10 | // 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 Baker | ed4efab | 2020-01-13 19:12:25 -0800 | [diff] [blame] | 18 | ) |