Categorygithub.com/martig3/csgo-demo-worker
modulepackage
0.2.16
Repository: https://github.com/martig3/csgo-demo-worker.git
Documentation: pkg.go.dev

# README

csgo-demo-worker

How to Use

Set Environment Variables

  • LOG_LEVEL - logrus log level
  • DEMO_STATS_USER - username for basic auth (optional)
  • DEMO_STATS_PASSWORD - password for basic auth (optional)

Endpoints

PathMethodBodyParameters
api/parsePOSTBinary .dem filen/a
api/parse-remoteGETn/aurl - remote url, auth - Full Authorization header (optional)

Docker

docker run \
-p 8080:8080 \ 
-e PORT=8080 \
ghcr.io/csconfederation/csgo-demo-worker:latest

Local Development

It is easiest to simply clone this repo and run it using go run main.go. This will automatically start a the webserver on port 8080.

If you are working on changes to the parser dependency, you can use the go get command to pull a specific version or even git commit.

Example: go get github.com/https://github.com/csconfederation/demoScrape2@[gitref]

If you do this, make sure to set the version back afterwards to the next release version before merging to main.

Deploy Checklist

Most changes to this repo will be updating the parser lib version, here is a checklist for this process:

Libraries Used