memq

command module
v0.0.0-...-386a9ac Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

README

memq

Multi-writer single consumer in-memory queue (fast and simple).

Run

SUB=https://api.example.com/msg KEY=your_api_key memq

Settings

Should be passed as env vars.

SUB  = https://api.example.com/msg  # consumer's address
KEY  = your_api_key                 # authentication token
ADDR = localhost:5359               # local binding address
QCAP = 1024                         # queue capacity

Sending Messages

POST https://queue.example.com/msg
Content-Type: ...

Your message in the body

The Content-Type is going to be forwarded to the consumer, so be mindful of that. When sending bytes, use application/octet-stream, for JSON data - use application/json.

Anyways, I'm not here to teach you - in any uncertain situation - Google your way out of it like you always do 😊

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
example
consumer command
producer command

Jump to

Keyboard shortcuts

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