Commit Graph

9 Commits

Author SHA1 Message Date
Kelvin Clement Mwinuka
926a008c23 Updated generic and hash package tests to use tcp connection instead of calling the handler directly 2024-05-24 13:40:40 +08:00
Kelvin Clement Mwinuka
df51142217 Implemented test for LoadModule, ListModules, and UnloadModule. Added check for existence of module file using os.Stat before attempting to open the file. Added build-module-tests step in makefile to simplify building modules for unit and race tests 2024-05-09 01:36:52 +08:00
Kelvin Clement Mwinuka
d28bda98bb Added makefile command to build modules for admins module tests.
Implemented more sensible logic for testing the COMMANDS command instead of just printing each returned command.
Implemented tests for MODULE LOAD, MODULE UNLOAD, and MODULE LIST commands.
Implemented testdata folder cleanup after finishing admin command tests.
2024-05-08 23:17:45 +08:00
Kelvin Clement Mwinuka
851ca6d11c Added copyright text 2024-05-03 12:13:59 +08:00
Kelvin Clement Mwinuka
bdf6150b73 Added godoc comments for LoadModule, UnloadModule and ListModules methods 2024-05-03 12:07:39 +08:00
Kelvin Clement Mwinuka
0f6ae1c8ac Implemented LoadModules method to load external modules at runtime.
Implemented UnloadModules method to remove modules at runtime.
Implemented ListModules method to list the current loaded modules.
Implemented "MODULE LOAD", "MODULE UNLOAD", and "MODULE LIST" commands.
2024-05-03 11:57:21 +08:00
Kelvin Clement Mwinuka
24b5e6d39e Renamed LoadModules and UnloadModules to LoadModule and UnloadModule respectively because they both deal with one module at a time. 2024-05-01 17:39:49 +08:00
Kelvin Clement Mwinuka
8aed3a320d Implemented LoadModules method for loading modules into EchoVault.
Implemented UnloadModules methods for removing module from EchoVault.
Removed connection from plugin handler function parameters as it should not be modified by the module.
2024-05-01 17:37:31 +08:00
Kelvin Clement Mwinuka
b439bd24f0 Created plugin.go file to handle loading and unloading of plugins to EchoVault 2024-04-29 22:30:16 +08:00