luxarts / hte-danger-zone-job

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hte-danger-zone-job

Setup

  1. Build image
    docker build -t danger-zone-job .
    
  2. Run image
    docker run -d --name danger-zone-job \
      -e REDIS_HOST='redis:6379' \
      -e REDIS_PASSWORD='' \
      -e REDIS_CHANNEL_GEOLOC='c-geoloc' \
      -e REDIS_CHANNEL_CREATE_ZONE='c-dangerzone:create' \
      -e REDIS_CHANNEL_DELETE_ZONE='c-dangerzone:delete' \
      -e REDIS_KEY_DANGER_ZONE='k-dangerzone' \
      -e REDIS_QUEUE_ALARMS='q-alarms' \
      --network hte \
      danger-zone-job
    

Generate mocks

mockery --all --inpackage

Redis key convention

Streams: s-<NAME> Stream Last ID read: slid-<STREAM_NAME>:<SERVICE> Queues: q-<NAME> Individual values: v-<NAME> Channels: c-<NAME>

Workflow

About


Languages

Language:Go 98.3%Language:Dockerfile 1.7%