client

package
v0.0.0-...-9058691 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2023 License: Apache-2.0 Imports: 9 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
}

func New

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

func (*Client) Notify

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

func (*Client) RemoteCall

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

func (*Client) Shutdown

func (c *Client) Shutdown() error

type Message

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

type Option

type Option func(*Client)

func ConnAttempts

func ConnAttempts(attempts int) Option

func ConnWaitTime

func ConnWaitTime(timeout time.Duration) Option

func Timeout

func Timeout(timeout time.Duration) Option

Jump to

Keyboard shortcuts

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