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