Skip to content

Storages

Atomys edited this page Mar 6, 2024 · 7 revisions

Redis

Redis storage uses the List data type to send and store data on Redis storage.

type: redis
specs:
  # Host of the redis you want to use
  host: redis.default.svc.cluster.local # VALUABLE*
  # Port of the Redis Server
  port: 6379 # VALUABLE*
  # Username used to log in
  username: 'foo' # VALUABLE*
  # Password used to log in
  password: 'bar' # VALUABLE*
  # In which database do you want to store your data
  database: 0
  # The key where you want to send the data
  key: example-webhook

Postgresql

Postgresql storage push data on a column of a configuration table in string format. You can store data in the text field or jsonb field.

type: postgres
specs:
  # Database URL of your Postgres Server
  databaseUrl: 'postgresql://user:password@postgres.default.svc.cluster.local:5432/database' # VALUABLE*
  # In which table do you want to store the data
  # ! DEPRECATED NOTICE: This will be deprecated in 1.0.0. Use the formatting feature insted 
  tableName: 'webhooks_deliveries'
  # In which column do you want to store the data (data is sent in string format on this field)
  # ! DEPRECATED NOTICE: This will be deprecated in 1.0.0. Use the formatting feature insted 
  dataField: 'raw_data'
  # Use the formatting feature to build your query. Will be turned on by default in 1.0.0
  useFormattingToPerformQuery: true

RabbitMQ

RabbitMQ storage push data on a queue in string format.

type: rabbitmq
specs:
  # Database URL of your RabbitMQ Server
  databaseUrl: 'amqp://user:password@rabbitmq.default.svc.cluster.local:5672/' # VALUABLE*
  # In which queue you want to store the data
  queueName: 'webhooks_deliveries'
  # For some options you can look the official documentation**
  durable: false
  deleteWhenUnused: false
  exclusive: false
  noWait: false
  mandatory: false
  immediate: false
  exchange: ""