Titouan Rigoudy
2e4a7c1472
Suppress warnings.
2 years ago
Titouan Rigoudy
fe06f8f640
Test ServerLoggedInContext::logout().
2 years ago
Titouan Rigoudy
0a2fea7bcb
Test ServerLoggedInContext::new().
2 years ago
Titouan Rigoudy
a5919c478c
Build server context with initial state.
2 years ago
Titouan Rigoudy
a5ff5beafe
WIP: Introduce ServerContext.
2 years ago
Titouan Rigoudy
ff24e96124
Move room and user modules into server module.
2 years ago
Titouan Rigoudy
2c3a5d85a0
Move login to server::login.
2 years ago
Titouan Rigoudy
6a57be5475
Introduce PeerEventHandler.
2 years ago
Titouan Rigoudy
dfaef89728
Dispatch to user event handler.
2 years ago
Titouan Rigoudy
20c1b77f05
Fix build.
2 years ago
Titouan Rigoudy
f16e981523
Add user::event module.
2 years ago
Titouan Rigoudy
edfb46dd01
Rename Message to Event.
2 years ago
Titouan Rigoudy
68161b2f8b
Introduce generic EventHandler trait.
2 years ago
Titouan Rigoudy
bceb8480b5
Use thiserror for UserNotFoundError.
2 years ago
Titouan Rigoudy
3b71ab2f2d
Introduce user submodule.
2 years ago
Titouan Rigoudy
5e560f358b
Clean up RoomEventHandler tests.
2 years ago
Titouan Rigoudy
34d0b1886d
Migrate RoomMessageResponseHandler.
2 years ago
Titouan Rigoudy
00c6f1758e
Migrate RoomMessageRequestHandler.
2 years ago
Titouan Rigoudy
7fb8e3b180
Migrate RoomListResponseHandler.
2 years ago
Titouan Rigoudy
5a756c1a63
Use sort_by() instead of sort_by_key().
2 years ago
Titouan Rigoudy
fc3a88d41e
Migrate RoomListRequestHandler.
2 years ago
Titouan Rigoudy
92b6e18d5e
Migrate RoomJoinResponseHandler.
2 years ago
Titouan Rigoudy
c5d0d9558e
Migrate RoomJoinRequestHandler.
2 years ago
Titouan Rigoudy
09d7940e3a
Disambiguate requests and responses.
2 years ago
Titouan Rigoudy
4ba7815aa1
Move RoomJoinRequestHandler into RoomEventHandler.
2 years ago
Titouan Rigoudy
b52ef853a5
Avoid reaching into RoomEntry from RoomMap.
2 years ago
Titouan Rigoudy
42338c1c59
Delete RoomError.
2 years ago
Titouan Rigoudy
064cc9cbac
Add comments to room module.
2 years ago
Titouan Rigoudy
364c777f3e
Add test for set_tickers().
2 years ago
Titouan Rigoudy
685c4bf1ed
Add tests for insert_member() and remove_member().
2 years ago
Titouan Rigoudy
0daaf6f645
Move set_tickers() from RoomMap to RoomEntry.
2 years ago
Titouan Rigoudy
3f661aa2b8
Move {insert,remove}_member() from RoomMap to RoomEntry.
2 years ago
Titouan Rigoudy
a271ef85eb
Move leave() from RoomMap to RoomEntry.
2 years ago
Titouan Rigoudy
579655890f
Add TODO.
2 years ago
Titouan Rigoudy
80aa69558a
Suppress last remaining warnings.
2 years ago
Titouan Rigoudy
78b71b501c
Suppress warnings in room/map.rs.
2 years ago
Titouan Rigoudy
8f05c12430
Move start_leaving() from RoomMap to RoomEntry.
2 years ago
Titouan Rigoudy
30044af1c6
Move join() from RoomMap to RoomEntry.
2 years ago
Titouan Rigoudy
12707418d3
Move start_joining() from RoomMap to RoomEntry.
2 years ago
Titouan Rigoudy
a30c2c0fa8
Wrap RoomState in RoomEntry inside map.
2 years ago
Titouan Rigoudy
eff56ac051
Move tests from room/map.rs to room/state.rs.
2 years ago
Titouan Rigoudy
4c9b016d61
Rename Message to RoomMessage.
2 years ago
Titouan Rigoudy
15f279e6bc
Rename Visibility to RoomVisibility.
2 years ago
Titouan Rigoudy
d9be1d5f15
Rename Membership to RoomMembership.
2 years ago
Titouan Rigoudy
138f305da9
Rename Room to RoomState.
2 years ago
Titouan Rigoudy
e773b1500f
Introduce RoomNotFoundError.
2 years ago
Titouan Rigoudy
254bd2bce7
Use RoomMap::insert() in regular builds.
2 years ago
Titouan Rigoudy
8afdc9854b
Move Room et al. to room/state.rs.
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