Server application that provides an endpoint for fetching Tog sessions.
$ docker run -d -p 3000:3000 \
--env 'REDIS_URL=redis://your-redis:6379' \
escaletech/tog-session-server
$ curl localhost:3000/<NAMESPACE>/<SESSION-ID>
PATH_PREFIX
- Prefix to the endpoint (optional, e.g./_sessions
)REDIS_URL
- URL for the Redis server used by Tog (required, e.g.redis://my-redis-server.com
)REDIS_CLUSTER
- Set totrue
if Redis URL is a cluster (optional, default:false
)
Requires Go 1.14 and Redis 4.0+.
Common operations:
- Run server locally while watching for changes:
make dev
- Run all tests:
make test
- Start tests while watching for changes:
make test-watch
- Release a new version:
make release