Decode decodes msgpack representation into LocalRepo
(input []byte)
| 76 | |
| 77 | // Decode decodes msgpack representation into LocalRepo |
| 78 | func (repo *LocalRepo) Decode(input []byte) error { |
| 79 | decoder := codec.NewDecoderBytes(input, &codec.MsgpackHandle{}) |
| 80 | return decoder.Decode(repo) |
| 81 | } |
| 82 | |
| 83 | // Key is a unique id in DB |
| 84 | func (repo *LocalRepo) Key() []byte { |
no outgoing calls