rabbitmq

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close()

Close 關閉全域連線

func Consume

func Consume(queue string, handler func(msg string) error) error

Consume 消費訊息

func DeclareQueue

func DeclareQueue(name string) (amqp.Queue, error)

DeclareQueue 宣告 queue 並存到 map

func Init

func Init(url string) error

Init 建立連線與 channel (全域)

func Send

func Send(queue string, body string) error

Send 發送訊息 (自動查 map)

Types

This section is empty.

Jump to

Keyboard shortcuts

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