Proof-of-Concept string hashing service using the NATS micro package.
hash.md5
hash.sha1
hash.sha256
hash.sha512
hash.blake2b
-
Install NATS CLI: https://github.com/nats-io/natscli#installation
-
Add and select demo NATS server:
nats context add demo --server demo.nats.io:4222 --select
-
Check for running instances:
nats micro list HashService
-
Run your own instance if necessary:
- With Task:
task run
- Directly:
go run ./cmd
- With Task:
-
Send request:
nats req hash.md5 "hello there"
Output:
161bc25962da8fed6d2f59922fb642aa