Skip to main content

MODULE LOAD

Syntax

MODULE LOAD path [arg [arg ...]]

Module

admin

Categories

admin dangerous fast

Description

Load a module from a dynamic library at runtime. The path should be the full path to the module, including the .so filename. Any args will be be passed unmodified to the module's key extraction and handler functions.

Examples

Load a modules with no args:

vault, err := echovault.NewEchoVault()
if err != nil {
log.Fatal(err)
}
err := server.LoadModule("/path/to/module.so")

Load a module with a few args:

vault, err := echovault.NewEchoVault()
if err != nil {
log.Fatal(err)
}
err := server.LoadModule("/path/to/module.so", "arg1", "arg2", "arg3")