minos.common.protocol.avro.messages
Classes
Minos Avro Messages Protocol class. |
- class MinosAvroMessageProtocol[source]
Bases:
MinosAvroProtocol
Minos Avro Messages Protocol class.
- classmethod encode(headers, body=None, *args, **kwargs)[source]
encoder in avro all the headers are converted in fields with double underscore name the body is a set fields coming from the data type.
- classmethod decode(data, *args, **kwargs)[source]
Decode the given bytes of data into a single dictionary or a sequence of dictionaries.
- classmethod decode_schema(data, *args, **kwargs)
Decode the given bytes of data into a single dictionary or a sequence of dictionaries.