MCPcopy
hub / github.com/uber/aresdb / GetTopicFromTable

Function GetTopicFromTable

utils/kafka.go:23–29  ·  view source on GitHub ↗

GetTopicFromTable get the topic name for namespace and table name

(namespace, table, suffix string)

Source from the content-addressed store, hash-verified

21
22// GetTopicFromTable get the topic name for namespace and table name
23func 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}

Calls

no outgoing calls

Tested by

no test coverage detected