amqp

package
v0.0.0-...-03bec22 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2022 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client - Simple AMQP Client wrapper

func NewAMQP

func NewAMQP(conf Config) *Client

NewAMQP - will create a new AMQP Client object

func (*Client) CloseResponseConsumer

func (c *Client) CloseResponseConsumer(name string, correlationId string)

func (*Client) RegisterConsumer

func (c *Client) RegisterConsumer(name string) chan Message

RegisterConsumer - creates a new consumer channel and returns it

func (*Client) RegisterProducer

func (c *Client) RegisterProducer(name string) chan Message

RegisterProducer - creates a new producer channel and returns it

func (*Client) RegisterResponseConsumer

func (c *Client) RegisterResponseConsumer(name string, correlationId string) chan Message

RegisterConsumer - creates a new consumer channel and returns it

type Config

type Config struct {
	Host string `json:"host" toml:"host"`
}

Config - config entry describing a amqp config

type Message

type Message struct {
	Expiration    string
	CorrelationId string
	Payload       string
}

type Queue

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

Jump to

Keyboard shortcuts

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