rabbitmq

package
v0.0.0-...-2f80c7b Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2022 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Consume

func Consume(ctx *cli.Context) error

func GetCommand

func GetCommand() *cli.Command

func Publish

func Publish(ctx *cli.Context) error

Types

type Rmq

type Rmq struct {
	Conn *amqp.Connection
	Chan *amqp.Channel
	// contains filtered or unexported fields
}

func NewRmq

func NewRmq(port int, host, username, password, vhost string) (*Rmq, error)

func (*Rmq) Close

func (rmq *Rmq) Close()

func (*Rmq) Publish

func (rmq *Rmq) Publish(exchange, routingKey string, data []byte) error

type RmqOption

type RmqOption struct {
	Host     string
	Port     int
	UserName string
	Password string
	Vhost    string
}

func (*RmqOption) Url

func (option *RmqOption) Url() string

Jump to

Keyboard shortcuts

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