amqp

package
v1.0.0-alpha2 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetUri

func SetUri(config Config) string

Types

type AmqpClient

type AmqpClient struct {
	Connection  *amqp.Connection
	ServiceName string
}

func NewClient

func NewClient(config Config) (*AmqpClient, error)

Open Connection to AMQP Server

func (*AmqpClient) AddPublisher

func (a *AmqpClient) AddPublisher(publisher Publisher)

func (*AmqpClient) AddSubscriber

func (a *AmqpClient) AddSubscriber(subscriber *subscriber.SubscriberConfig)

type Config

type Config struct {
	ServiceName string
	Host        string
	Port        int
	User        string
	Password    string
}

type Publisher

type Publisher interface {
	Build(client *AmqpClient)
}

Jump to

Keyboard shortcuts

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