hello

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2018 License: Apache-2.0 Imports: 0 Imported by: 0

README

Simple Hello World Pub/Sub implementation

In order for this demo to work, you must have your AWS credentials present in the form that the AWS SDK for Go requires.

  1. Run the gRPC server provided in this example:
cd ~/go/src/github.com/infobloxopen/atlas-pubsub/examples/server/
go run main.go
  1. In a separate terminal, run the subscriber provided in this example:
cd ~/go/src/github.com/infobloxopen/atlas-pubsub/examples/hello/subscriber
go run main.go
  1. In another separate terminal, run the publisher provided in this example:
cd ~/go/src/github.com/infobloxopen/atlas-pubsub/examples/hello/publisher
go run main.go

The publisher will send a message every second. You can experiment by spinning up more publishers or subscribers, both with the same subscriptionID and with different ones.

Documentation

Index

Constants

View Source
const DefaultSubscriberID = "example_hello_subscriberid"

DefaultSubscriberID is the default id to use for this example

View Source
const DefaultTopicName = "example_hello"

DefaultTopicName is the default topic name to use for this example

Variables

View Source
var Greetings = []greeting{
	greeting{"english", "Hello!"},
	greeting{"russian", "Здравствуйте!"},
	greeting{"spanish", "¡Hola!"},
}

Greetings are different languages that the example will use. The language will be set in the metadata and subscribers can filter based on what language they want to listen for

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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