rmqrpc

package
v0.0.0-...-e9da8bd Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const Success = "success"

Success -.

Variables

View Source
var (
	// ErrTimeout -.
	ErrTimeout = errors.New("timeout")
	// ErrInternalServer -.
	ErrInternalServer = errors.New("internal server error")
	// ErrBadHandler -.
	ErrBadHandler = errors.New("unregistered handler")
)

Functions

This section is empty.

Types

type Config

type Config struct {
	URL      string
	WaitTime time.Duration
	Attempts int
}

Config -.

type Connection

type Connection struct {
	ConsumerExchange string
	Config
	Connection *amqp.Connection
	Channel    *amqp.Channel
	Delivery   <-chan amqp.Delivery
}

Connection -.

func New

func New(consumerExchange string, cfg Config) *Connection

New -.

func (*Connection) AttemptConnect

func (c *Connection) AttemptConnect() error

AttemptConnect -.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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