mirror of
https://github.com/eosswedenorg/thalos
synced 2026-06-16 04:24:56 +02:00
Adding docs/redis-channels.md
This commit is contained in:
parent
5fc83635be
commit
ffb5a10788
1 changed files with 39 additions and 0 deletions
39
docs/redis-channels.md
Normal file
39
docs/redis-channels.md
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
|
||||
# Redis channels
|
||||
|
||||
This document describes the redis channels used by thalos to deliver messages.
|
||||
|
||||
## Namespace
|
||||
|
||||
First. all channels have a namespace attached to them. this is done to prevent other application to clash with the keys.
|
||||
|
||||
The namespace have the following format: `<prefix>::<chain_id>`
|
||||
|
||||
* `prefix` is per default `ship` but can be configured to be something else.
|
||||
* `chain_id` is the chain's id and is used to separate transactions if multiple chains are setup in the same redis database.
|
||||
|
||||
## Transactions
|
||||
|
||||
All transactions are posted to the following channel:
|
||||
|
||||
`<namespace>::transactions`
|
||||
|
||||
## Actions
|
||||
|
||||
there is 4 types of channels for actions.
|
||||
|
||||
The channel where all actions are posted is:
|
||||
|
||||
`<namespace>::actions`
|
||||
|
||||
Channel where only specific actions are posted:
|
||||
|
||||
`<namespace>::actions/name/<action>`
|
||||
|
||||
Channel where only actions on a specific `<contract>` is posted:
|
||||
|
||||
`<namespace>::actions/contract/<contract>`
|
||||
|
||||
Channel where only `<action>` on a specific `<contract>` is posted:
|
||||
|
||||
`<namespace>::actions/contract/<contract>/name/<action>`
|
||||
Loading…
Add table
Add a link
Reference in a new issue