mirror of
https://github.com/jwetzell/showbridge-go.git
synced 2026-04-26 21:05:30 +00:00
add the concept of routes input/output
This commit is contained in:
35
config.json
35
config.json
@@ -1,11 +1,26 @@
|
||||
{
|
||||
"modules": [
|
||||
{
|
||||
"type": "net.tcp.server",
|
||||
"params": {
|
||||
"port": 8000,
|
||||
"framing": "LF"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
"modules": [
|
||||
{
|
||||
"id": "tcp1",
|
||||
"type": "net.tcp.server",
|
||||
"params": {
|
||||
"port": 8000,
|
||||
"framing": "LF"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "tcp2",
|
||||
"type": "net.tcp.server",
|
||||
"params": {
|
||||
"port": 8001,
|
||||
"framing": "LF"
|
||||
}
|
||||
}
|
||||
],
|
||||
"routes": [
|
||||
{
|
||||
"input": "tcp1",
|
||||
"output": "tcp2"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user