mirror of
https://github.com/EchoVault/SugarDB.git
synced 2025-10-05 07:56:52 +08:00
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.
This commit is contained in:
@@ -78,6 +78,9 @@ type HandlerFuncParams struct {
|
||||
TakeSnapshot func() error
|
||||
RewriteAOF func() error
|
||||
GetLatestSnapshotTime func() int64
|
||||
LoadModule func(path string, args ...string) error
|
||||
UnloadModule func(module string)
|
||||
ListModules func() []string
|
||||
}
|
||||
|
||||
type HandlerFunc func(params HandlerFuncParams) ([]byte, error)
|
||||
|
Reference in New Issue
Block a user