queue

package
v0.0.0-...-67244d4 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

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

type Logger

type Logger interface {
	Info(format string, v ...interface{})
	Error(format string, v ...interface{})
	Enable(e bool)
}

type Queue

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

func NewRabbitQueue

func NewRabbitQueue(name, url string) (*Queue, error)

func (*Queue) Delay

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

func (*Queue) EnableLog

func (q *Queue) EnableLog(e bool)

func (*Queue) Receive

func (q *Queue) Receive(callback func(body []byte)) error

func (*Queue) Send

func (q *Queue) Send(body []byte) error

func (*Queue) SetLogger

func (q *Queue) SetLogger(l Logger)

Jump to

Keyboard shortcuts

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