Go server for Nemon.
To run this code locally, clone this repository and you can start coordinator or worker using following commands:
Please make sure that the coordinator and worker are connected on the same network(LAN).
To run coordinator :
go run main.go --mode coordinator --key <some-number> (--dev for development on localhost)
To run worker :
go run main.go --mode worker --key <same-number-as-the-coordinator> (--dev for development on localhost)
To compile modified proto files run:
make protos
Set up goimports to run on save
- goland
- vs code
- Install goimports globally using
$ go install golang.org/x/tools/cmd/goimports@latest
- Install goimports globally using
- nvim
let g:go_fmt_autosave = 1
Make sure to use error codes with status.Error in all gRPC errors
