1
0
Fork 0
mirror of https://github.com/eosswedenorg/thalos synced 2026-06-17 04:30:03 +02:00
thalos/internal/redis/key.go

17 lines
298 B
Go

package redis
import (
"fmt"
)
// Key consists of a namespace and a channel.
// And is encoded to a string in this format: `<namespace>::<channel>`
type Key struct {
NS Namespace
Channel ChannelInterface
}
func (k Key) String() string {
return fmt.Sprintf("%s::%s", k.NS, k.Channel)
}