@zwolf/turbine-driver-switch
v4.4.0
Published
Select which turbine driver to use at runtime.
Downloads
5
Readme
Turbine Driver: Switch
Switch between different turbine drivers using an environment variable.
import createDriver from '@zwolf/turbine-driver-switch'
import createService from '@zwolf/turbine'
const service = createService({
name: 'myService',
driver: createDriver({
defaultDriver: '@zwolf/turbine-driver-aws-fanout'
})
})
...
TURBINE_DRIVER=@zwolf/turbine-driver-amqp npm start
TURBINE_DRIVER_ARGS_JSON='{"url":"amqp://localhost"}'