mirror of
https://github.com/jwetzell/showbridge-go.git
synced 2026-04-26 21:05:30 +00:00
rename files in common package
This commit is contained in:
8
internal/common/context.go
Normal file
8
internal/common/context.go
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
package common
|
||||||
|
|
||||||
|
type contextKey string
|
||||||
|
|
||||||
|
const RouterContextKey contextKey = contextKey("router")
|
||||||
|
const SourceContextKey contextKey = contextKey("source")
|
||||||
|
const ModulesContextKey contextKey = contextKey("modules")
|
||||||
|
const SenderContextKey contextKey = contextKey("sender")
|
||||||
@@ -2,13 +2,6 @@ package common
|
|||||||
|
|
||||||
import "context"
|
import "context"
|
||||||
|
|
||||||
type contextKey string
|
|
||||||
|
|
||||||
const RouterContextKey contextKey = contextKey("router")
|
|
||||||
const SourceContextKey contextKey = contextKey("source")
|
|
||||||
const ModulesContextKey contextKey = contextKey("modules")
|
|
||||||
const SenderContextKey contextKey = contextKey("sender")
|
|
||||||
|
|
||||||
type RouteIO interface {
|
type RouteIO interface {
|
||||||
HandleInput(ctx context.Context, sourceId string, payload any) (bool, []RouteIOError)
|
HandleInput(ctx context.Context, sourceId string, payload any) (bool, []RouteIOError)
|
||||||
HandleOutput(ctx context.Context, destinationId string, payload any) error
|
HandleOutput(ctx context.Context, destinationId string, payload any) error
|
||||||
Reference in New Issue
Block a user