micro
develop
develop
  • Micro Starter Kit
  • Features
  • Getting Started
    • Why
    • Prerequisites
    • Installation
    • Makefile
  • Concepts
    • Introduction
    • Configuration
    • State
    • Select
  • Advanced
    • Dependency Injection
    • Logging
    • Error Handling
    • Life-cycle
    • Git Flow
    • Git Ops
    • mTLS
    • Release
    • Release Process
    • Pub Sub
    • Troubleshooting
  • Modules
    • Commands
      • Demo
    • Services
      • Account
      • Emailer
      • Greeter
      • Recorder
  • DevOps
    • Docker
    • KinD
    • Istio
  • Testing
    • Intro
    • Mock
    • Bloom RPC
  • Recipes
    • Authentication
    • Caching
    • Health Checks
    • Performance Testing
    • Dynamic Plugins
    • Immutability Helpers
    • Style Guide
    • Unit Testing
  • Community
    • Resources
    • Contributors
    • Contributing
  • Change Log
  • FAQ
Powered by GitBook
On this page
  • Configuration
  • Usage

Was this helpful?

  1. Modules
  2. Services

Emailer

This is the Emailer service

Showcase

  1. Async service

Configuration

  • FQDN: mkit.service.emailer

  • Type: service

  • Alias: emailer

Usage

A Makefile is included for convenience

Build the binary

make build TARGET=emailer TYPE=service VERSION=v0.1.1

Run the service

make run-emailer
make run-emailer ARGS="--server_address=:8082"
# or
go run service/emailer/main.go service/emailer/plugin.go

Build a docker image

make docker TARGET=emailer TYPE=service VERSION=v0.1.1

Test the service

micro publish mkit.service.emailer  '{ "to" : "sumo@demo.com", "from": "demo@sumo.com", "subject": "sub", "body": "mybody"  }'
PreviousAccountNextGreeter

Last updated 4 years ago

Was this helpful?