mirror of
https://github.com/jwetzell/showbridge-go.git
synced 2026-08-23 14:58:58 +00:00
add constructor for test module type
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user