recorder

command
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2020 License: MIT Imports: 12 Imported by: 0

README

Recorder Service

Recorder service saves TransactionEvents to configured go-micro store. Transactions are published by other micro services i.e., account, emailer, greeter

Usage

Run the service

(optional) set broker to googlepubsub

export MICRO_BROKER=googlepubsub
export GOOGLEPUBSUB_PROJECT_ID=<my-project-id>
export GOOGLE_APPLICATION_CREDENTIALS=<path_to.json>
make run-recorder
make run-recorder ARGS="--server_address=:8083"

Test the service

micro call mkit.service.recorder Transaction.Read  '{"key": "0edc8bb2-33e0-4766-bc13-e62a346465be#accountsrv"}'
# micro publish mkit.service.recorder '{ "Header" : { "a": "aa", "b": "bb" }, "Body" : {"c": "cc"} }'

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
proto

Jump to

Keyboard shortcuts

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