mirror of
https://github.com/hanzoai/traces.git
synced 2026-10-30 18:20:41 +00:00
* test * Refactor dupe errors, skip compaction, fix error handling in search * Lint, tests * Fix tests
20 lines
424 B
Go
20 lines
424 B
Go
package common
|
|
|
|
import (
|
|
"strconv"
|
|
)
|
|
|
|
const (
|
|
// NameObjects names the backend data object
|
|
NameObjects = "data"
|
|
// NameIndex names the backend index object
|
|
NameIndex = "index"
|
|
// nameBloomPrefix is the prefix used to build the bloom shards
|
|
nameBloomPrefix = "bloom-"
|
|
)
|
|
|
|
// bloomName returns the backend bloom name for the given shard
|
|
func BloomName(shard int) string {
|
|
return nameBloomPrefix + strconv.Itoa(shard)
|
|
}
|