Raxol.Core.Session.TerminalSession (Raxol v2.0.1)

View Source

Terminal session implementation for the unified session manager.

Provides terminal emulator session management with:

  • Session creation and authentication
  • Session state tracking
  • Terminal emulator integration
  • Session cleanup and lifecycle management

Summary

Functions

Authenticates a terminal session with a token.

Creates a new terminal session.

Gets all sessions for a user.

Types

t()

@type t() :: %Raxol.Core.Session.TerminalSession{
  created_at: DateTime.t(),
  emulator: term(),
  id: String.t(),
  last_active: DateTime.t(),
  token: String.t(),
  user_id: String.t()
}

Functions

authenticate(session, token)

Authenticates a terminal session with a token.

create(user_id, config)

Creates a new terminal session.

get_user_sessions(user_id, sessions)

Gets all sessions for a user.