mirror of
https://github.com/jwetzell/showbridge-go.git
synced 2026-04-26 12:55:29 +00:00
16 lines
412 B
Go
16 lines
412 B
Go
package common
|
|
|
|
import "context"
|
|
|
|
type RouteIO interface {
|
|
HandleInput(ctx context.Context, sourceId string, payload any) (bool, []RouteIOError)
|
|
HandleOutput(ctx context.Context, destinationId string, payload any) error
|
|
}
|
|
|
|
type RouteIOError struct {
|
|
Index int `json:"index"`
|
|
OutputError error `json:"outputError"`
|
|
ProcessError error `json:"processError"`
|
|
InputError error `json:"inputError"`
|
|
}
|