ironmq

package
v1.8.2 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2018 License: BSD-2-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewManager added in v1.3.0

func NewManager(cfg *iron_config.Settings) msgqueue.Manager

Types

type Queue

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

func NewQueue

func NewQueue(mqueue mq.Queue, opt *msgqueue.Options) *Queue

func Queues

func Queues() []*Queue

func (*Queue) Add

func (q *Queue) Add(msg *msgqueue.Message) error

Add adds message to the queue.

func (*Queue) Call

func (q *Queue) Call(args ...interface{}) error

Call creates a message using the args and adds it to the queue.

func (*Queue) CallOnce

func (q *Queue) CallOnce(period time.Duration, args ...interface{}) error

CallOnce works like Call, but it returns ErrDuplicate if message with such args was already added in a period.

func (*Queue) Close

func (q *Queue) Close() error

Close is CloseTimeout with 30 seconds timeout.

func (*Queue) CloseTimeout

func (q *Queue) CloseTimeout(timeout time.Duration) error

Close closes the queue waiting for pending messages to be processed.

func (*Queue) Delete

func (q *Queue) Delete(msg *msgqueue.Message) error

Delete deletes the message from the queue.

func (*Queue) GetAddQueue added in v1.8.0

func (q *Queue) GetAddQueue() *memqueue.Queue

func (*Queue) GetDeleteQueue added in v1.8.0

func (q *Queue) GetDeleteQueue() *memqueue.Queue

func (*Queue) Len added in v1.4.0

func (q *Queue) Len() (int, error)

func (*Queue) Name

func (q *Queue) Name() string

func (*Queue) Options

func (q *Queue) Options() *msgqueue.Options

func (*Queue) Processor

func (q *Queue) Processor() *msgqueue.Processor

func (*Queue) Purge

func (q *Queue) Purge() error

Purge deletes all messages from the queue using IronMQ API.

func (*Queue) Release

func (q *Queue) Release(msg *msgqueue.Message) error

func (*Queue) ReserveN

func (q *Queue) ReserveN(n int, reservationTimeout time.Duration, waitTimeout time.Duration) ([]*msgqueue.Message, error)

func (*Queue) String

func (q *Queue) String() string

Jump to

Keyboard shortcuts

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