|
farm-ng-core
|
Public Member Functions | |
| None | __init__ (self, Event event, int pos, EventsFileReader reader) |
| str | __repr__ (self) |
| Message | read_message (self) |
Public Attributes | |
| event | |
| pos | |
| reader | |
EventLogPosition is a dataclass that stores the event, position and reader.
| None core.events_file_reader.EventLogPosition.__init__ | ( | self, | |
| Event | event, | ||
| int | pos, | ||
| EventsFileReader | reader | ||
| ) |
Initialize EventLogPosition.
Args:
event: the event described in event_pb2.Event
pos: the position of the event in the file
reader: the EventsFileReader instance
| str core.events_file_reader.EventLogPosition.__repr__ | ( | self | ) |
Return a string representation of the EventLogPosition.
| Message core.events_file_reader.EventLogPosition.read_message | ( | self | ) |
Read the message from the event.
| core.events_file_reader.EventLogPosition.event |
| core.events_file_reader.EventLogPosition.pos |
| core.events_file_reader.EventLogPosition.reader |