azsqs

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2017 License: BSD-2-Clause Imports: 10 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 NewQueue

func NewQueue(sqs *sqs.SQS, accountId string, 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 adds message with same args only once 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

func (*Queue) DeleteBatch

func (q *Queue) DeleteBatch(msgs []*msgqueue.Message) 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() *processor.Processor

func (*Queue) Purge

func (q *Queue) Purge() error

func (*Queue) Release

func (q *Queue) Release(msg *msgqueue.Message, delay time.Duration) error

func (*Queue) ReserveN

func (q *Queue) ReserveN(n int) ([]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