amqp

package
v0.0.0-...-ab2de73 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2020 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMessageID

func NewMessageID() string

NewMessageID generates a UUIDv4 as a string if generation fails for any reason, the function panics

func StringToTime

func StringToTime(v string) (time.Time, error)

func TimeToString

func TimeToString(t time.Time) string

Types

type Broker

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

Broker is an instance of a celeriac Broker which uses amqp

func (*Broker) Close

func (a *Broker) Close() error

Close closes the connection to the broker

func (*Broker) GetQueue

func (a *Broker) GetQueue(name string) (celeriac.Queue, error)

type Queue

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

func (*Queue) Consume

func (q *Queue) Consume() (<-chan celeriac.Message, error)

func (*Queue) Publish

func (q *Queue) Publish(body []byte) (string, error)

Jump to

Keyboard shortcuts

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