add constructor for test module type

This commit is contained in:
Joel Wetzell
2026-05-19 21:55:43 -05:00
parent be1e01cc3f
commit 5db23627d6
3 changed files with 12 additions and 5 deletions
+7
View File
@@ -8,7 +8,14 @@ import (
_ "modernc.org/sqlite"
)
func NewTestModule(id string) *TestModule {
return &TestModule{
id: id,
}
}
type TestModule struct {
id string
}
func (m *TestModule) Start(ctx context.Context, router common.RouteIO) error {