client

command module
v0.0.0-...-cfd26a1 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2020 License: GPL-3.0 Imports: 16 Imported by: 0

README

GRPC client for isisphinx/report2mail

compilation

# for *nix
go build -o report2mail

This application is intended to run on Windows. Use the following line to cross compile on linux for windows target.

# for Windows
GOOS=windows GOARCH=amd64 go build -o report2mail.exe

usage

# on *nix
SERVERADDR="127.0.0.1:51000" TOKEN="AuthToken" ./report2mail '{"emailAddress":"recipient@example.com","firstname":"Jean","lastname":"Test","date":"2019-12-08","office":"District Medical Imagery","fileLocation":"report.pdf"}'

# on Windows (in cmd.exe only)
set SERVERADDR=127.0.0.1:51000
set TOKEN=authToken
# escaping double-quotes inside json payload is required
report2mail.exe "{\"emailAddress\":\"recipient@example.com\",\"firstname\":\"Jean\",\"lastname\":\"Test\",\"date\":\"2019-12-08\",\"office\":\"District Medical Imagery\",\"fileLocation\":\"report.pdf\"}"

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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