StarterRabbitServer

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

TODO 提取公共部分到 spring-rabbit 包

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DestroyServer

func DestroyServer(server *AMQPServer)

DestroyServer 销毁 AMQPServer 对象

Types

type AMQPServer

type AMQPServer struct {
	Connection *amqp.Connection
	Channel    *amqp.Channel
}

func CreateServer

func CreateServer(config AMQPServerConfig) (*AMQPServer, error)

CreateServer 创建 AMQPServer 对象,采用预先声明的方式避免运行时锁消耗

type AMQPServerConfig

type AMQPServerConfig struct {
	URL         string   `value:"${amqp.server.url}"`
	QueueTopics []string `value:"${amqp.queue.topics}"`
}

Jump to

Keyboard shortcuts

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