1
0
Fork 0
mirror of https://github.com/eosswedenorg/thalos synced 2026-06-19 04:50:02 +02:00

rename transport to api

This commit is contained in:
Henrik Hautakoski 2023-04-19 09:52:29 +02:00
parent 044ed4e891
commit 102045e47e
15 changed files with 40 additions and 40 deletions

19
api/redis_common/key.go Normal file
View file

@ -0,0 +1,19 @@
package redis_common
import (
"fmt"
"thalos/api"
)
// 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 api.Channel
}
func (k Key) String() string {
return fmt.Sprintf("%s::%s", k.NS, k.Channel.Format("/"))
}