publish

package
v0.0.0-...-60d6fac Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Publish

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

func New

func New(channel *amqp.Channel, um Unmarshaller) (*Publish, error)

New creates new publisher

func (*Publish) Do

func (p *Publish) Do(ctx context.Context, queue, replyQueue string, data []byte) ([]byte, error)

Do provides sending of the message

type Unmarshaller

type Unmarshaller interface {
	Do([]byte, interface{}) error
}

Unmarshaller defines unmarshaler for client

Jump to

Keyboard shortcuts

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