CodecParser implements the Parser interface. It converts any contract.Codec to a valid config parser.
| 7 | // CodecParser implements the Parser interface. It converts any contract.Codec to |
| 8 | // a valid config parser. |
| 9 | type CodecParser struct { |
| 10 | Codec contract.Codec |
| 11 | } |
| 12 | |
| 13 | // Unmarshal converts the bytes to map |
| 14 | func (c CodecParser) Unmarshal(bytes []byte) (map[string]interface{}, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected