record-daemon: refactor client.rs

This commit is contained in:
2026-03-25 15:37:51 +01:00
parent f81eff8496
commit ac4020b841
8 changed files with 1091 additions and 863 deletions

View File

@@ -5,12 +5,21 @@
mod auth;
mod client;
mod endpoints;
mod events;
mod mappings;
mod metadata;
mod state;
mod tls;
mod websocket;
pub use auth::{LockfileCredentials, LockfileWatcher};
pub use client::{
champion_id_to_name, spell_id_to_name, GameEndMetadata, GameflowPhase, LqpClient,
PreGameMetadata,
pub use client::LqpClient;
pub use endpoints::{
ALL_RUNE_PAGES, CHAMPION_SELECT, CHAMPION_SELECT_LOCAL_PLAYER, CHAMPION_SUMMARY,
GAMEFLOW_PHASE, GAME_STATS, LIVE_CLIENT_DATA, LIVE_CLIENT_DATA_ACTIVE_PLAYER,
LIVE_CLIENT_DATA_PLAYER_LIST, MATCH_HISTORY, RUNE_PAGES, SESSION, SUBSCRIBE_ENDPOINTS,
SUMMONER,
};
pub use events::{
ChampSelectStartInfo, ChampionPickInfo, DeathEvent, EventData, GameEndInfo, GameEvent,
@@ -18,3 +27,7 @@ pub use events::{
ObjectiveEvent, ObjectiveType, PlayerChampionSelection, PlayerGameMetadata, PlayerIdentity,
QueueInfo, RunePage, RuneSlot, SummonerSpells, TeamMember,
};
pub use mappings::{champion_id_to_name, map_id_to_name, spell_id_to_name};
pub use metadata::{GameEndMetadata, PreGameMetadata};
pub use state::{ClientState, GameflowPhase};
pub use websocket::{parse_event_from_uri, parse_websocket_message};