Subscriber

command
v0.0.0-...-626509d Latest Latest
Warning

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

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

README

Subscriber Service

This is the Subscriber service

Generated with

micro new github.com/ne0z/go-micro-googlepubsub-demo/Subscriber --namespace=go.googlepubsub --alias=subscriber --type=srv --plugin=registry=consul:broker=googlepubsub

Getting Started

Configuration

  • FQDN: go.googlepubsub.srv.subscriber
  • Type: srv
  • Alias: subscriber

Dependencies

Micro services depend on service discovery. The default is consul.

# install consul
brew install consul

# run consul
consul agent -dev

Usage

Setup environment variables

export PROJECT_ID=your_project_id
export GOOGLE_APPLICATION_CREDENTIALS=~/path/your_project_credentials.json

A Makefile is included for convenience

Build the binary

make build

Run the service

./subscriber-srv

Build a docker image

make docker

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
proto
example
Package go_googlepubsub_srv_subscriber is a generated protocol buffer package.
Package go_googlepubsub_srv_subscriber is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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