rabbitmqchannel

package
v0.0.0-...-834ce46 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WaitForConnection

func WaitForConnection(rabbitmq *Rabbitmq)

Types

type ChannelAdapter

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

func New

func New(done <-chan bool, wg *sync.WaitGroup, config Config) *ChannelAdapter

func (*ChannelAdapter) GetInputChannel

func (ca *ChannelAdapter) GetInputChannel(name string) (chan<- []byte, error)

func (*ChannelAdapter) GetMode

func (ca *ChannelAdapter) GetMode(name string) (channel.Mode, error)

func (*ChannelAdapter) GetOutputChannel

func (ca *ChannelAdapter) GetOutputChannel(name string) (<-chan channel.Message, error)

func (*ChannelAdapter) NewChannel

func (ca *ChannelAdapter) NewChannel(name string, mode channel.Mode, bufferSize, maxRetryPolicy int) error

type Config

type Config struct {
	User            string `koanf:"user"`
	Password        string `koanf:"password"`
	Host            string `koanf:"host"`
	Port            int    `koanf:"port"`
	Vhost           string `koanf:"vhost"`
	ReconnectSecond int    `koanf:"reconnect_second"`
}

type RabbitMQConsumerConnection

type RabbitMQConsumerConnection struct {
	User            string
	Password        string
	Host            string
	Port            int
	Vhost           string
	ReconnectSecond int
}

type Rabbitmq

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

Jump to

Keyboard shortcuts

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