mq

command module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2025 License: MIT Imports: 27 Imported by: 0

README

使用golang实现的轻量级mq

支持功能

  • 创建队列 CreateMq(mq string)
  • 删除队列 DeleteMq(mq string)
  • 清空队列 Drop(mq string)
  • push消息 Push(mq string, msg string)
  • pop消息 Pop(mq string, num int)
  • 归档消息 Archive(mq string, id uint64)
  • 读取消息并设置时间等待归档或删除,等待时间内该消息不会再被读取 Read(mq string, num int, timeout time.Duration)
  • 删除消息 Delete(mq string, id uint64)

使用

golang
go install github.com/Rehtt/mq@latest

mkdir ~/.config/mq
mq -path ~/.config/mq/
docker
docker run -d -p 1234:1234 -v data:/data ghcr.io/rehtt/mq:master

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳