mrrabbitmq

package
v0.16.4 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnAdapter added in v0.3.1

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

ConnAdapter - адаптер для работы с Rabbitmq клиентом.

func New

func New() *ConnAdapter

New - создаёт объект ConnAdapter.

func (*ConnAdapter) Cli added in v0.3.1

func (c *ConnAdapter) Cli() *amqp.Connection

Cli - возвращается нативный объект, с которым работает данный адаптер.

func (*ConnAdapter) Close added in v0.3.1

func (c *ConnAdapter) Close() error

Close - закрывает текущее соединение.

func (*ConnAdapter) Connect added in v0.3.1

func (c *ConnAdapter) Connect(_ context.Context, opts Options) error

Connect - создаёт соединение с указанными опциями.

type Options

type Options struct {
	Host     string
	Port     string
	User     string
	Password string
}

Options - опции для создания соединения для ConnAdapter.

Jump to

Keyboard shortcuts

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