queue

package
v0.0.0-...-c8309c0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Queue

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

func NewQueueInstance

func NewQueueInstance(host, port, username, password string) (*Queue, error)

func (*Queue) Consume

func (q *Queue) Consume(queue string) (<-chan amqp.Delivery, error)

func (*Queue) DestroyQueueInstance

func (q *Queue) DestroyQueueInstance() error

func (*Queue) Publish

func (q *Queue) Publish(exchange, routingKey string, jsonBody map[string]interface{}) error

type ResultQueue

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

func NewRedisClient

func NewRedisClient(addr string) (*ResultQueue, error)

func (*ResultQueue) ErrorInfo

func (rq *ResultQueue) ErrorInfo(authReq models.AuthenticationRequest, msg string) error

func (*ResultQueue) FailureInfo

func (rq *ResultQueue) FailureInfo(authReq models.AuthenticationRequest, msg string) error

func (*ResultQueue) SuccessInfo

func (rq *ResultQueue) SuccessInfo(authReq models.AuthenticationRequest, status string) error

Jump to

Keyboard shortcuts

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