rabbitmq

package
v0.0.0-...-56ff150 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2020 License: Apache-2.0 Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProducerPublish

func ProducerPublish(address, exchangeName string, messageBody []byte) error

Types

type Consumer

type Consumer struct {
	Address      string
	ExchangeName string
	Handler      MQHandler
	// contains filtered or unexported fields
}

func (*Consumer) ReConnect

func (c *Consumer) ReConnect()

func (*Consumer) Run

func (c *Consumer) Run()

type MQHandler

type MQHandler interface {
	HandleMessage(m *amqp.Delivery) error
}

type UpdateKubeConfig

type UpdateKubeConfig struct{}

func (*UpdateKubeConfig) HandleMessage

func (u *UpdateKubeConfig) HandleMessage(m *amqp.Delivery) error

只要实现HandleMessage方法既可以实现Handler接口

Jump to

Keyboard shortcuts

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