Module server

Module server 

Source
Expand description

Server-side components for Triglav.

This module contains:

  • Key-based identity management
  • Session management
  • Daemon mode support
  • Signal handling

Structs§

AuthorizedKey
An authorized key (identity).
DaemonConfig
Daemon configuration.
KeyStore
Key store - manages authorized keys.
PidFileGuard
PID file guard that removes the file on drop.
ServerSession
Server session.
SessionConfig
Session configuration.
SessionManager
Session manager.
ShutdownSignal
A future that completes when shutdown is signaled.
SignalHandler
Signal handler that broadcasts signals to subscribers.
UserKey
User key (for compatibility).
UserRegistration
Registration request (for compatibility).

Enums§

SessionEvent
Session event.
SessionState
Session state.
Signal
Signal type.
UserRole
User role - simplified, mostly for display/grouping.

Functions§

daemonize
Daemonize the current process.
remove_pid_file
Remove the PID file.
setup_signal_handlers
Setup signal handlers and return a shutdown receiver.
wait_for_shutdown
Convenience function to wait for shutdown signals.
write_pid_file
Write the current PID to a file.

Type Aliases§

UserDeprecated
UserManagerDeprecated