codec: add yaml support
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
		| @@ -20,6 +20,16 @@ func (m *Frame) UnmarshalJSON(data []byte) error { | |||||||
| 	return m.Unmarshal(data) | 	return m.Unmarshal(data) | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // MarshalYAML returns frame data | ||||||
|  | func (m *Frame) MarshalYAML() ([]byte, error) { | ||||||
|  | 	return m.Marshal() | ||||||
|  | } | ||||||
|  |  | ||||||
|  | // UnmarshalYAML set frame data | ||||||
|  | func (m *Frame) UnmarshalYAML(data []byte) error { | ||||||
|  | 	return m.Unmarshal(data) | ||||||
|  | } | ||||||
|  |  | ||||||
| // ProtoMessage noop func | // ProtoMessage noop func | ||||||
| func (m *Frame) ProtoMessage() {} | func (m *Frame) ProtoMessage() {} | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user