hello

command
v3.0.1+incompatible Latest Latest
Warning

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

Go to latest
Published: May 8, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

README

hello

The "hello world" of grid applications.

What You Will Learn
  1. How to start a gird application
  2. How to define a leader actor
  3. How to discovery peers in the application
  4. How to start other actors besides the leader
Prerequisite, Etcd

The grid library requires a V3 etcd server to be running, and this example requires that it run on its default port number. You can get etcd running by doing:

$ go get github.com/coreos/etcd
$ cd github.com/coreos/etcd
$ ./build
$ bin/etcd
Running the Example

In a terminal run the following command from inside the hello directory:

$ go run main.go -address localhost:7777

You can run as many of these processes as you want, but each will need a different port number.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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