mirror of
https://github.com/eosswedenorg/thalos
synced 2026-06-25 10:33:43 +02:00
move channel stuffs from internal/redis to transport.
This commit is contained in:
parent
d0782c3c7c
commit
b22118898d
8 changed files with 18 additions and 18 deletions
|
|
@ -1,17 +0,0 @@
|
|||
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)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue