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