1
0
Fork 0
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:
Henrik Hautakoski 2023-01-13 13:38:04 +01:00
parent d0782c3c7c
commit b22118898d
8 changed files with 18 additions and 18 deletions

View file

@ -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)
}