Lay out new client structure

This commit is contained in:
Joscha 2019-05-25 13:12:28 +00:00
parent 6c4bfe2752
commit 7da4bf36d5
21 changed files with 174 additions and 1137 deletions

14
cheuph/message_supply.py Normal file
View file

@ -0,0 +1,14 @@
__all__ = ["MessageSupply"]
class MessageSupply:
"""
A MessageSupply holds all of a room's known messages. It can be queried in
different ways. Messages can also be added to or removed from the MessageSupply
as they are received by the client.
The MessageSupply may use a database or keep messages in memory. A
MessageSupply may also wrap around another MessageSupply, to provide caching or
similar.
"""
pass