Skip to content

Latest commit

 

History

History
37 lines (23 loc) · 761 Bytes

README.md

File metadata and controls

37 lines (23 loc) · 761 Bytes

Command

This is an example of a bot command as a microservice

Contents

  • main.go - is the main definition of the service and handler

Prereqs

Micro services need a discovery system so they can find each other. Micro uses consul by default but its easily swapped out with etcd, kubernetes, or various other systems. We'll run consul for convenience.

Install consul

brew install consul

Alternative instructions - https://www.consul.io/intro/getting-started/install.html

Run Consul

consul agent -dev

Run the example

Run the service

go run main.go

Call the service

Run the bot and send message command