Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReplayLogs ¶
ReplayLogs replays logs from a file to a specified host, port, user, and database. It reads log messages from the file and sends them to the corresponding session. If a session does not exist, a new session is created. The function returns an error if there is any issue with opening the file or parsing the log messages.
Parameters: - host: the hostname of the PostgreSQL server - port: the port number of the PostgreSQL server - user: the username to connect to the PostgreSQL server - db: the database name to connect to - file: the file containing the log messages
Returns: - error: an error if there is any issue with opening the file or parsing the log messages
TODO : unit tests
Types ¶
This section is empty.