amqpcommand

package
v0.0.0-...-0e4f5d7 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RequestTimeoutError error = fmt.Errorf("request timed out")
)

Functions

This section is empty.

Types

type Client

type Client interface {
	Addr() string
	Start()
	Stop()
	ReconnectCount() int64
	RequestWithTimeout(message *amqp.Message, timeout time.Duration) (*amqp.Message, error)
	Request(message *amqp.Message) (*amqp.Message, error)
}

func NewCommandClient

func NewCommandClient(addr string, commandAddress string, commandResponseAddress string, opts ...amqp.ConnOption) Client

type CommandClient

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

func (*CommandClient) Addr

func (c *CommandClient) Addr() string

func (*CommandClient) ReconnectCount

func (c *CommandClient) ReconnectCount() int64

func (*CommandClient) Request

func (c *CommandClient) Request(message *amqp.Message) (*amqp.Message, error)

func (*CommandClient) RequestWithTimeout

func (c *CommandClient) RequestWithTimeout(message *amqp.Message, timeout time.Duration) (*amqp.Message, error)

func (*CommandClient) Start

func (c *CommandClient) Start()

func (*CommandClient) Stop

func (c *CommandClient) Stop()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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