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