Greenline is an agnostic relay for interconnecting disparate components. It is named after the oldest subway line of the same name in Boston, Massachusetts.
-
Using environment variables:
# environment variables (zero-based index)
export GL_RAIL_0_NAME="broadcast"
export GL_RAIL_0_PATTERN="pub/sub"
export GL_RAIL_0_INGRESS_PORT=5000
export GL_RAIL_0_EGRESS_PORT=6000
export GL_RAIL_1_NAME="conversation"
export GL_RAIL_1_PATTERN="req/rep"
export GL_RAIL_1_INGRESS_PORT=7000
export GL_RAIL_1_EGRESS_PORT=8000
./greenline
-
Using TOML configuration file:
./greenline rail-config.toml
-
TOML format
-
example
[[rail]]
name = "broadcast"
pattern = "pub/sub"
ingress = 5000
egress = 6000
[[rail]]
name = "conversation"
pattern = "req/rep"
ingress = 7000
egress = 8000