queue_nats

package module
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: May 20, 2026 License: MIT Imports: 8 Imported by: 1

README

queue-nats

queue-natsgithub.com/infrago/queuenats 驱动

包定位

  • 类型:驱动
  • 作用:把 queue 模块的统一接口落到 nats 后端实现

快速接入

import (
    _ "github.com/infrago/queue"
    _ "github.com/infrago/queue-nats"
)
[queue]
driver = "nats"

setting 专用配置项

配置位置:[queue].setting

  • url / server
  • token
  • user / username
  • pass / password
  • stream(JetStream,默认 INFRAGOQ

说明

  • 普通 NATS 延迟发布是 best-effort;需要持久队列语义时使用 natsjs / nats-js / jetstream
  • setting 仅对当前驱动生效,不同驱动键名可能不同
  • 连接失败时优先核对 setting 中 host/port/认证/超时等参数

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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