1
0
Fork 0
mirror of https://github.com/eosswedenorg/thalos synced 2026-06-18 04:40:03 +02:00
thalos/transport/redis_common/key.go

19 lines
344 B
Go

package redis_common
import (
"fmt"
"eosio-ship-trace-reader/transport"
)
// 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 transport.Channel
}
func (k Key) String() string {
return fmt.Sprintf("%s::%s", k.NS, k.Channel)
}