webhooks

module
v0.0.0-...-891ed02 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2020 License: MIT

README

webhooks

The webhooks service listens for subscribed Twitch webhook events and pushes event payloads to the NATS message queue.

CI/CD

Environment Variables

This application uses environment variables for configurations. Below are all expected variables and their default values.

Variable Default Description
WEBHOOKS_HOST 127.0.0.1 The host that the webhooks server should run on
WEBHOOKS_PORT 8080 The port that the webhooks server should be served on
NATS_HOST 0.0.0.0 The NATS host address for NATS clients to connect to
NATS_PORT 4222 The NATS port for NATS clients to connect on
NATS_QUEUE twitch_channels The NATS queue for which to publish messages to
LOG_LEVEL info The log level to start logging from (see here)

Development

Prerequisites
  • Docker
  • Go v1.13 or greater
CI Pipeline

For continuous integration (CI) this project uses GitHub Actions. The build pipeline will run tests and publish Docker images to GCR.

Running Locally
docker build --no-cache -t chatstatz-webhooks .
docker run --rm -p 8080:8080 chatstatz-webhooks

License

This repository is distributed under the terms of the MIT License.

Directories

Path Synopsis
cmd
webhooks command
test

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL