Titouan Rigoudy
68161b2f8b
Introduce generic EventHandler trait.
2 years ago
Titouan Rigoudy
ef34f6d626
Introduce room submodule.
2 years ago
Titouan Rigoudy
214278b418
Handle messages in dispatcher, remove Job abstraction.
Introduce dependency injection to Dispatcher to allow testing.
TODO:
- introduce room/ submodule, move room.rs and room_event.rs in there
- dependency injecton for other handlers
3 years ago
Titouan Rigoudy
29577b1886
Handle peer address response.
4 years ago
Titouan Rigoudy
82f4330545
Start handling peer connect request.
4 years ago
Titouan Rigoudy
35da08bf5c
Handle user list request.
4 years ago
Titouan Rigoudy
bb73e71da2
Remove macro_use for log crate.
4 years ago
Titouan Rigoudy
794cba3fe4
Remove executor, exedute jobs single-threaded.
4 years ago
Titouan Rigoudy
8f490cf1e9
Handle LoginStatusRequest.
4 years ago
Titouan Rigoudy
5d82bbc818
Rename SetPrivilegedUsersHandler -> PrivilegedUsersResponseHandler.
4 years ago
Titouan Rigoudy
4ffe17e141
Rename SetRoomListHandler -> RoomListResponseHandler.
4 years ago
Titouan Rigoudy
3beb31087b
Basic handling for RoomMessageResponse: forward it.
4 years ago
Titouan Rigoudy
c744ff4139
Handle RoomJoinResponse. Needs tests.
4 years ago
Titouan Rigoudy
de20326200
One more test for the control listener.
4 years ago
Titouan Rigoudy
94d7716ed8
Rework MessageHandler to use associated types.
4 years ago
Titouan Rigoudy
c2b19896b3
Handle sending messages to rooms.
4 years ago
Titouan Rigoudy
34ebc39bb1
Improve tests on Dispatcher.
4 years ago
Titouan Rigoudy
2d5b2b2adb
Basic handler for control RoomListRequest.
4 years ago
Titouan Rigoudy
2bf08bc221
Dispatch RoomListResponse correctly.
4 years ago
Titouan Rigoudy
a778c75afc
Add server request sender to Context.
4 years ago
Titouan Rigoudy
57a8791c85
Implement basic asynchronous main.
4 years ago
Titouan Rigoudy
3328aaed3d
Small fixes to Dispatcher.
4 years ago
Titouan Rigoudy
a7f48e12aa
Extract proto module to its own crate.
4 years ago
Titouan Rigoudy
d718e8d883
Define workspace and client crate.
4 years ago
Titouan Rigoudy
381ec05247
Set indent width to 2.
4 years ago
Titouan Rigoudy
83620698fd
Set 80-char line width.
4 years ago
Titouan Rigoudy
5ccae4b042
Add stub LoginHandler.
6 years ago
Titouan Rigoudy
d5b269a05d
Introduce SetPrivilegedUsersHandler.
This is the first message handler to be defined.
6 years ago
Titouan Rigoudy
cc17e60f9b
Remove useless Debug from DispatchedMessage handler type bound.
6 years ago
Titouan Rigoudy
e542c102b2
Move Context back into Executor, add test.
6 years ago
Titouan Rigoudy
e7fc922bb3
Move some Executor functionality into MessageHandler.
6 years ago
Titouan Rigoudy
78d10224f8
Implement Executor.
6 years ago
Titouan Rigoudy
9aaf843856
Introduce MessageHandler, Dispatcher, Executor.
6 years ago