mirror of
https://github.com/jwetzell/showbridge-go.git
synced 2026-07-26 09:58:40 +00:00
add more to smoke config
This commit is contained in:
+30
-5
@@ -57,14 +57,25 @@ routes:
|
||||
processors:
|
||||
- type: string.create
|
||||
params:
|
||||
template: "hello"
|
||||
template: "wsecho: {{.Payload.UnixMilli}}"
|
||||
- type: module.output
|
||||
params:
|
||||
module: wsecho
|
||||
- input: ticker
|
||||
processors:
|
||||
- type: string.create
|
||||
params:
|
||||
template: "tcpout: {{.Payload.UnixMilli}}"
|
||||
- type: string.encode
|
||||
- type: module.output
|
||||
params:
|
||||
module: tcpout
|
||||
- input: ticker
|
||||
processors:
|
||||
- type: string.create
|
||||
params:
|
||||
template: "udpout: {{.Payload.UnixMilli}}"
|
||||
- type: string.encode
|
||||
- type: module.output
|
||||
params:
|
||||
module: udpout
|
||||
@@ -74,14 +85,15 @@ routes:
|
||||
params:
|
||||
url: "http://localhost:3000/echo"
|
||||
method: "GET"
|
||||
- type: struct.field.get
|
||||
params:
|
||||
name: "Body"
|
||||
- type: string.decode
|
||||
- type: debug.log
|
||||
- input: tcpin
|
||||
processors:
|
||||
- type: string.decode
|
||||
- type: debug.log
|
||||
- input: httpin
|
||||
processors:
|
||||
- type: debug.log
|
||||
- input: udpin
|
||||
processors:
|
||||
- type: string.decode
|
||||
@@ -98,12 +110,25 @@ routes:
|
||||
- type: debug.log
|
||||
- input: natsin
|
||||
processors:
|
||||
- type: struct.field.get
|
||||
params:
|
||||
name: "Data"
|
||||
- type: string.decode
|
||||
- type: debug.log
|
||||
- input: httpin
|
||||
processors:
|
||||
- type: http.response.create
|
||||
params:
|
||||
status: 200
|
||||
bodyTemplate: "Hello, World!"
|
||||
- type: module.output
|
||||
params:
|
||||
module: httpin
|
||||
- input: ticker
|
||||
processors:
|
||||
- type: string.create
|
||||
params:
|
||||
template: "{{.Payload}}"
|
||||
template: "natsout: {{.Payload}}"
|
||||
- type: pubsub.publish
|
||||
params:
|
||||
module: natsout
|
||||
|
||||
Reference in New Issue
Block a user