move module interface to common package

This commit is contained in:
Joel Wetzell
2026-03-18 12:47:28 -05:00
parent 2a40fa561c
commit 2127c6fd5b
23 changed files with 42 additions and 37 deletions

View File

@@ -27,7 +27,7 @@ type NATSServer struct {
func init() {
RegisterModule(ModuleRegistration{
Type: "nats.server",
New: func(moduleConfig config.ModuleConfig) (Module, error) {
New: func(moduleConfig config.ModuleConfig) (common.Module, error) {
params := moduleConfig.Params
portNum, err := params.GetInt("port")
if err != nil {