mirror of
https://github.com/jwetzell/showbridge-go.git
synced 2026-04-26 21:05:30 +00:00
23 lines
432 B
Go
23 lines
432 B
Go
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{}
|
|
}
|