rabbitmq

package
v0.0.0-...-aed9658 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2021 License: Apache-2.0 Imports: 7 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 NewClient

func NewClient(host string, port int, opt ...ClientOption) (*Client, error)

func (*Client) Close

func (c *Client) Close() error

type ClientOption

type ClientOption interface {
	// contains filtered or unexported methods
}

func WithBufSize

func WithBufSize(bufSize int) ClientOption

func WithPassword

func WithPassword(password string) ClientOption

func WithUsername

func WithUsername(username string) ClientOption

func WithVhost

func WithVhost(vhost string) ClientOption

type Producer

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

func NewProducer

func NewProducer(exchange string, name string, client *Client) (*Producer, error)

func (*Producer) Channel

func (p *Producer) Channel() chan<- []byte

Jump to

Keyboard shortcuts

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