rabbit

package
v0.0.0-...-ee5d6ac Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(user, pass, host string, port int) (err error)

Types

type Broker

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

func New

func New(user, pass, host, bindingKey string, port int) *Broker

func (*Broker) Connect

func (b *Broker) Connect() error

func (*Broker) Publish

func (b *Broker) Publish(routingKey string, headers map[string]interface{}, body []byte) error

func (*Broker) Subscribe

func (b *Broker) Subscribe(h Handler) error

type Handler

type Handler func(map[string]interface{}, []byte) error

Jump to

Keyboard shortcuts

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