xconfig_rabbitmq

package
v0.2.52 Latest Latest
Warning

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

Go to latest
Published: May 27, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Consume

func Consume(names []string, fn func(amqp.Delivery))

func ConsumeRPC

func ConsumeRPC(names []string, fn func(amqp.Delivery) []byte)

func GetOneChan

func GetOneChan(name ...string) *amqp.Channel

func GetRabbitMq

func GetRabbitMq(name ...string) (c map[string]*amqp.Channel)

GetRedis get redis instance with name

func InitRabbitMq

func InitRabbitMq() (err error)

InitRabbitMq init rabbitMQ

func Publish

func Publish(exchange, key string, tsk *kts.Task) (err error)

Publish mq publish

func PublishRPC

func PublishRPC(exchange, key string, tsk *kts.Task) (err error)

Publish mq publish

Types

This section is empty.

Jump to

Keyboard shortcuts

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