rabbitmq

package
v0.0.0-...-5d738b8 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IMq

type IMq interface {
	Sender(exchange, routingkey, data string)
	Delay(exchange, routingKey, data string, delayTime int)
	Connect() error
}

type Listener

type Listener struct {
	Repo repository.IStartRepo
}

func (*Listener) AutoFunc

func (l *Listener) AutoFunc()

func (*Listener) OtherListener

func (l *Listener) OtherListener()

func (*Listener) SomeListener

func (l *Listener) SomeListener()

type Mq

type Mq struct {
	Repo repository.IStartRepo `inject:""`
}

func (*Mq) BaseListener

func (m *Mq) BaseListener(consumeConfig *MqConsumeConfig, fun func([]byte))

func (*Mq) Connect

func (m *Mq) Connect() error

func (*Mq) Delay

func (m *Mq) Delay(exchange, routingKey, data string, delayTime int)

func (*Mq) Sender

func (m *Mq) Sender(exchange, routingkey, data string)

type MqConfig

type MqConfig struct {
	Channel *amqp.Channel
}

*

  • 排序执行方法
  • 交换机声明一定在前

func (*MqConfig) AutoFunc

func (m *MqConfig) AutoFunc()

func (*MqConfig) Exchange1

func (m *MqConfig) Exchange1()

func (*MqConfig) Queue1

func (m *MqConfig) Queue1() amqp.Queue

func (*MqConfig) Queue2

func (m *MqConfig) Queue2() amqp.Queue

type MqConsumeConfig

type MqConsumeConfig struct {
	Queue string
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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