rabbit

package
v1.0.48 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(name string, option Option)

func AddMap

func AddMap(name string, setting map[string]interface{})

func AddMapBatch

func AddMapBatch(batch map[string]interface{})

func GetConsumer added in v1.0.35

func GetConsumer(name string, queue string, optionFuncs ...func(*rabbitmq.ConsumerOptions)) *rabbitmq.Consumer

func GetPublisher added in v1.0.35

func GetPublisher(name string, optionFuncs ...func(*rabbitmq.PublisherOptions)) *rabbitmq.Publisher

func Use

func Use(name string) *rabbitmq.Conn

Types

type Option

type Option struct {
	DSN string `json:"dsn"` //数据源
}

Jump to

Keyboard shortcuts

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