module
Version:
v0.0.0-...-c9ebaed
Opens a new window with list of versions in this module.
Published: Nov 11, 2023
License: MIT
Opens a new window with license information.
README
¶
NATS Hashing Service
Proof-of-Concept string hashing service using the NATS micro package.
Endpoints
hash.md5
hash.sha1
hash.sha256
hash.sha512
hash.blake2b
Usage
-
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
-
Send request:
nats req hash.md5 "hello there"
Output: 161bc25962da8fed6d2f59922fb642aa
Directories
¶
Click to show internal directories.
Click to hide internal directories.