MCPcopy Index your code
hub / github.com/cortexproject/cortex / GetCodec

Function GetCodec

pkg/ring/model.go:30–32  ·  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

28
29// GetCodec returns the codec used to encode and decode data being put by ring.
30func GetCodec() codec.Codec {
31 return codec.NewProtoCodec("ringDesc", ProtoDescFactory)
32}
33
34// NewDesc returns an empty ring.Desc
35func NewDesc() *Desc {

Calls 1

NewProtoCodecFunction · 0.92