emailer

command
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2021 License: MIT Imports: 8 Imported by: 0

README

Emailer Service

This is the Emailer service

Showcase

  1. Async service

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
# or
go run service/emailer/main.go
Build a docker image
make docker TARGET=emailer TYPE=service VERSION=v0.1.1
Test the service
curl -X POST \
    -H "content-type: application/json"  \
    -H "ce-specversion: 1.0"  \
    -H "ce-source: curl-command"  \
    -H "ce-type: curl.demo"  \
    -H "ce-id: 123-abc"  \
    -d '{"Subject": "Sumo", "To": "sumo@demo.com"}' \
    http://localhost:8082

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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