go-eventsource

command module
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2019 License: MIT Imports: 19 Imported by: 0

README

go-eventsource

Server-sent stream to update game info in real-time

Build docker image

To build the go-eventsource docker image you should use jet by running

jet steps

This should generate an image tagged us.gcr.io/replay-gaming/go-eventsource:latest in your local docker engine.

Alternatively you can download the image from our private docker registry manually too.

Build locally

To build the binary outside of docker, you can use the standard commands from golang:

go build
# generates ./go-eventsource
./go-eventsource -h

Run

To run the binary, you can check all the options available by running

go-eventsource -h

All options can be overridden through environment variables following the pattern ES_<VARNAME>. Eg. ES_PORT=3333 ./go-eventsource changes the http port to 3333

As always for more details on the options, read the source code :)

Kubernetes

To deploy to kubernetes, use the provision script under the kubernetes folder.

The help should guide you on how to use it, and it assumes sane defaults for staging.

./kubernetes/provision -h

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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