Expand description
Save/load utility for persisting server and client configurations
This module handles serializing server/client state to action arrays
and saving them to .netget files, as well as loading and parsing them.
Constants§
- MAX_
SESSION_ BYTES - NETGET_
EXTENSION - File extension for NetGet save files
Functions§
- is_
actions_ json - Check if a string is a valid actions JSON in {“actions”: […]} format
- load_
actions - Load actions from a file
- normalize_
filename - Normalize a filename to ensure it has the correct extension Strips any existing extension and adds .netget
- restore_
session - Restore configuration relationships using newly allocated IDs. Connections, transient request queues and in-flight responses are deliberately not resumed. On startup failure, remove resources created by this restore; existing state is never used as a rollback target.
- save_
all - Save all servers and clients to a file
- save_
client - Save a specific client to a file
- save_
server - Save a specific server to a file