mirror of
https://github.com/jwetzell/showbridge-go.git
synced 2026-04-27 05:15:47 +00:00
move test implementations to a shared internal package
This commit is contained in:
22
internal/test/router.go
Normal file
22
internal/test/router.go
Normal file
@@ -0,0 +1,22 @@
|
||||
package test
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/jwetzell/showbridge-go/internal/common"
|
||||
)
|
||||
|
||||
type TestRouter struct {
|
||||
}
|
||||
|
||||
func (r *TestRouter) HandleInput(ctx context.Context, sourceId string, payload any) (bool, []common.RouteIOError) {
|
||||
return false, nil
|
||||
}
|
||||
|
||||
func (r *TestRouter) HandleOutput(ctx context.Context, destinationId string, payload any) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func GetNewTestRouter() *TestRouter {
|
||||
return &TestRouter{}
|
||||
}
|
||||
Reference in New Issue
Block a user