mirror of
https://github.com/eosswedenorg/thalos
synced 2026-06-17 04:30:03 +02:00
17 lines
298 B
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)
|
|
}
|