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