MCPcopy
hub / github.com/grafana/dskit / GetCodec

Function GetCodec

ring/model.go:39–41  ·  view source on GitHub ↗

GetCodec returns the codec used to encode and decode data being put by ring.

()

Source from the content-addressed store, hash-verified

37
38// GetCodec returns the codec used to encode and decode data being put by ring.
39func GetCodec() codec.Codec {
40 return codec.NewProtoCodec("ringDesc", ProtoDescFactory)
41}
42
43// NewDesc returns an empty ring.Desc
44func NewDesc() *Desc {

Callers 15

runClusterFunction · 0.92
runClientFunction · 0.92
SimpleMemberlistKVFunction · 0.92
encodeMessageFunction · 0.92
NewFunction · 0.85
TestRingUpdatesFunction · 0.85
NewLifecyclerFunction · 0.85

Calls 1

NewProtoCodecFunction · 0.92