Skip to main content

Module save_load

Module save_load 

Source
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