GetTopicFromTable get the topic name for namespace and table name
(namespace, table, suffix string)
| 21 | |
| 22 | // GetTopicFromTable get the topic name for namespace and table name |
| 23 | func GetTopicFromTable(namespace, table, suffix string) string { |
| 24 | if suffix == "" { |
| 25 | return fmt.Sprintf("%s-%s-%s", aresRedologKafkaTopicPrefix, namespace, table) |
| 26 | } else { |
| 27 | return fmt.Sprintf("%s-%s-%s-%s", aresRedologKafkaTopicPrefix, namespace, table, suffix) |
| 28 | } |
| 29 | } |
no outgoing calls
no test coverage detected