-
Notifications
You must be signed in to change notification settings - Fork 106
/
dqname.go
25 lines (21 loc) · 922 Bytes
/
dqname.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// +build !windows
package nsqd
func getBackendName(topicName string, part int) string {
backendName := GetTopicFullName(topicName, part)
return backendName
}
func getBackendReaderName(topicName string, part int, channelName string) string {
// backend names, for uniqueness, automatically include the topic... <topic>:<channel>
backendName := GetTopicFullName(topicName, part) + ":" + channelName
return backendName
}
func getDelayQueueBackendName(topicName string, part int) string {
// backend names, for uniqueness, automatically include the topic... <topic>:<channel>
backendName := GetTopicFullName(topicName, part) + "-[delayed.queue]"
return backendName
}
func getDelayQueueDBName(topicName string, part int) string {
// backend names, for uniqueness, automatically include the topic... <topic>:<channel>
backendName := GetTopicFullName(topicName, part) + "-[delayed.queue].db"
return backendName
}