client

package
v0.0.0-...-42ff6b3 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrConnectionClosed = errors.New("rmq_rpc client - Client - RemoteCall - Connection closed")

ErrConnectionClosed -.

Functions

This section is empty.

Types

type Client

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

Client -.

func New

func New(url, serverExchange, clientExchange string, opts ...Option) (*Client, error)

New -.

func (*Client) Notify

func (c *Client) Notify() <-chan error

Notify -.

func (*Client) RemoteCall

func (c *Client) RemoteCall(handler string, request, response interface{}) error

RemoteCall -.

func (*Client) Shutdown

func (c *Client) Shutdown() error

Shutdown -.

type Message

type Message struct {
	Queue         string
	Priority      uint8
	ContentType   string
	Body          []byte
	ReplyTo       string
	CorrelationID string
}

Message -.

type Option

type Option func(*Client)

Option -.

func ConnAttempts

func ConnAttempts(attempts int) Option

ConnAttempts -.

func ConnWaitTime

func ConnWaitTime(timeout time.Duration) Option

ConnWaitTime -.

func Timeout

func Timeout(timeout time.Duration) Option

Timeout -.

Jump to

Keyboard shortcuts

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